chore: add model file ux

This commit is contained in:
jialin
2025-03-25 12:33:29 +08:00
parent 05ef2b8eaa
commit dca7a6f270
26 changed files with 1160 additions and 330 deletions
+3 -2
View File
@@ -4,8 +4,9 @@ import SimpleBar from 'simplebar-react';
import 'simplebar-react/dist/simplebar.min.css';
const FileParts: React.FC<{
showSize?: boolean;
fileList: any[];
}> = ({ fileList }) => {
}> = ({ fileList, showSize = true }) => {
return (
<SimpleBar
style={{ maxHeight: 200 }}
@@ -19,7 +20,7 @@ const FileParts: React.FC<{
{' '}
Part {file.part} of {file.total}
</span>
<span>{convertFileSize(file.size)}</span>
{showSize && <span>{convertFileSize(file.size)}</span>}
</div>
);
})}