Skip to content

Commit e0a818b

Browse files
fix: adjust layout for file rejection error messages and update width for consistency
1 parent 3c74ad6 commit e0a818b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/frontend/src/components/uploadButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,10 @@ const FileUploadZone: React.FC<FileUploadZoneProps> = ({
573573
)}
574574
</div>
575575

576-
<div style={{ display: 'flex', flexDirection: 'column', gap: '13px', width: '880px', paddingBottom: 10, borderRadius: '4px', }}>
576+
<div style={{ display: 'flex', flexDirection: 'column', gap: '13px', width: '837px', paddingBottom: 10, borderRadius: '4px', }}>
577577
{/* Show file rejection errors for invalid type or size */}
578578
{fileRejectionErrors.length > 0 && (
579+
<div style={{ width: uploadingFiles.some(f => f.status === 'completed') ? '837px' : '880px' }}>
579580
<MessageBar
580581
messageBarType={MessageBarType.error}
581582
isMultiline={true}
@@ -591,6 +592,7 @@ const FileUploadZone: React.FC<FileUploadZoneProps> = ({
591592
<div key={idx} style={{ marginLeft: "24px", marginTop: "2px" }}>{err}</div>
592593
))}
593594
</MessageBar>
595+
</div>
594596
)}
595597
{/* Show network error message bar if any file has error */}
596598
{uploadingFiles.some(f => f.status === 'error') && (

0 commit comments

Comments
 (0)