style: model file list

This commit is contained in:
jialin
2024-08-23 18:33:23 +08:00
parent a60be9c88f
commit 8bb1961a02
10 changed files with 84 additions and 85 deletions
+13 -11
View File
@@ -8,17 +8,19 @@ const FileParts: React.FC<{
}> = ({ fileList }) => {
return (
<SimpleBar style={{ maxHeight: 200 }}>
{fileList.map((file, index) => {
return (
<div key={index} className="flex-between m-b-5">
<span>
{' '}
Part {file.part} of {file.total}
</span>
<span>{convertFileSize(file.size)}</span>
</div>
);
})}
<div style={{ padding: 10 }}>
{fileList.map((file, index) => {
return (
<div key={index} className="flex-between m-b-5">
<span>
{' '}
Part {file.part} of {file.total}
</span>
<span>{convertFileSize(file.size)}</span>
</div>
);
})}
</div>
</SimpleBar>
);
};