浏览代码

fix: retrieval value greater more than 1 caused ui problem (#4718)

tags/0.6.10
Joel 1年前
父节点
当前提交
5bcbcd3c57
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/datasets/documents/detail/completed/SegmentCard.tsx

+ 1
- 1
web/app/components/datasets/documents/detail/completed/SegmentCard.tsx 查看文件

<div className={cn(s.progress, loading ? s.progressLoading : '')}> <div className={cn(s.progress, loading ? s.progressLoading : '')}>
<div <div
className={s.progressInner} className={s.progressInner}
style={{ width: `${loading ? 0 : (percent * 100).toFixed(2)}%` }}
style={{ width: `${loading ? 0 : (Math.min(percent, 1) * 100).toFixed(2)}%` }}
/> />
</div> </div>
<div className={loading ? s.progressTextLoading : s.progressText}>{loading ? null : percent.toFixed(2)}</div> <div className={loading ? s.progressTextLoading : s.progressText}>{loading ? null : percent.toFixed(2)}</div>

正在加载...
取消
保存