diff --git a/web/app/components/base/file-uploader/file-list-flex/file-list-flex-operation.tsx b/web/app/components/base/file-uploader/file-list-flex/file-list-flex-operation.tsx index c1e55de7f2..9412a96ac8 100644 --- a/web/app/components/base/file-uploader/file-list-flex/file-list-flex-operation.tsx +++ b/web/app/components/base/file-uploader/file-list-flex/file-list-flex-operation.tsx @@ -6,6 +6,7 @@ import { RiCloseLine } from '@remixicon/react' import { useStore } from '../store' import FileListItem from './file-list-flex-item' import Button from '@/app/components/base/button' +import ProgressCircle from '@/app/components/base/progress-bar/progress-circle' const FileListFlexOperation = forwardRef((_, ref) => { const files = useStore(s => s.files) @@ -21,9 +22,21 @@ const FileListFlexOperation = forwardRef((_, ref) => { key={file._id} className='relative' > - +
+ +
)) diff --git a/web/app/components/base/progress-bar/progress-circle.tsx b/web/app/components/base/progress-bar/progress-circle.tsx index b66dcae720..50ebc7536c 100644 --- a/web/app/components/base/progress-bar/progress-circle.tsx +++ b/web/app/components/base/progress-bar/progress-circle.tsx @@ -2,6 +2,7 @@ import { memo } from 'react' import cn from '@/utils/classnames' type ProgressCircleProps = { + className?: string percentage?: number size?: number circleStrokeWidth?: number @@ -11,6 +12,7 @@ type ProgressCircleProps = { } const ProgressCircle: React.FC = ({ + className, percentage = 0, size = 12, circleStrokeWidth = 1, @@ -38,6 +40,7 @@ const ProgressCircle: React.FC = ({ width={size + circleStrokeWidth} height={size + circleStrokeWidth} viewBox={`0 0 ${size + circleStrokeWidth} ${size + circleStrokeWidth}`} + className={className} >