fix(striker-ui): align upload progress in file upload form

main
Tsu-ba-me 3 years ago
parent c5a4c77de3
commit 8c0841ca71
  1. 18
      striker-ui/components/Files/FileUploadForm.tsx

@ -158,13 +158,25 @@ const FileUploadForm = (
{inUploadFiles.map(({ fileName, progressValue }) => (
<Box
key={`in-upload-${fileName}`}
sx={{ display: 'flex', flexDirection: 'row' }}
sx={{
alignItems: { md: 'center' },
display: 'flex',
flexDirection: { xs: 'column', md: 'row' },
'& > :first-child': {
minWidth: 100,
overflow: 'hidden',
overflowWrap: 'normal',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
width: { xs: '100%', md: 200 },
wordBreak: 'keep-all',
},
'& > :last-child': { flexGrow: 1 },
}}
>
<BodyText text={fileName} />
<Box sx={{ flexGrow: 1 }}>
<ProgressBar progressPercentage={progressValue} />
</Box>
</Box>
))}
{selectedFiles.map(
(

Loading…
Cancel
Save