Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit 70e28b3

Browse files
Fix FileCard description overflow, minor tweak to ensure FileUploader has consistent width (#111)
1 parent e0e608c commit 70e28b3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/files/file-card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ const FileCard: React.FC<FileCardProps> = (props: FileCardProps) => {
4848
marginRight={majorScale(2)}
4949
maxWidth={majorScale(40)}
5050
width="100%">
51-
<Flex.Row justifyContent="flex-start">
51+
<Flex.Row
52+
justifyContent="flex-start"
53+
overflow="hidden"
54+
width="100%">
5255
<Flex.Row alignItems="center">
5356
<Pane
5457
marginLeft={majorScale(2)}

src/components/files/file-uploader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ interface FileUploaderProps {
2626
const acceptedMimeTypes = [MimeType.mp3, MimeType.wav];
2727
const maxFiles = 10;
2828
const maxSizeInBytes = 10 * 1024 ** 2; // 10 MB
29+
const width = majorScale(40);
2930

3031
const FileUploader: React.FC<FileUploaderProps> = (
3132
props: FileUploaderProps
@@ -101,7 +102,7 @@ const FileUploader: React.FC<FileUploaderProps> = (
101102
getAcceptedTypesMessage(acceptedMimeTypes),
102103
].join(" ");
103104
return (
104-
<Pane marginBottom={majorScale(2)} maxWidth={majorScale(60)}>
105+
<Pane marginBottom={majorScale(2)} maxWidth={width} width={width}>
105106
<EvergreenFileUploader
106107
acceptedMimeTypes={acceptedMimeTypes}
107108
description={description}

0 commit comments

Comments
 (0)