Skip to content

Commit dca9a0e

Browse files
committed
chore: prevent scrollbar for attachment checkbox
1 parent 3c448be commit dca9a0e

File tree

1 file changed

+8
-2
lines changed
  • packages/frontend/src/components/AttachmentSuggestions/components

1 file changed

+8
-2
lines changed

packages/frontend/src/components/AttachmentSuggestions/components/Checkbox.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ function Checkbox(props: CheckboxProps) {
4343

4444
const getInfoText = (info?: number | string | null) => {
4545
return (
46-
<Text textStyle="body-2" noOfLines={1} color="base.content.medium">
46+
<Text
47+
textStyle="body-2"
48+
noOfLines={1}
49+
color="base.content.medium"
50+
overflowX="hidden"
51+
>
4752
{info ?? ''}
4853
</Text>
4954
)
@@ -65,9 +70,10 @@ function Checkbox(props: CheckboxProps) {
6570
cursor: 'pointer',
6671
}}
6772
p="0.5rem"
73+
overflowX="hidden"
6874
>
6975
<Flex alignItems="center" justify="space-between" maxW="100%">
70-
<Flex direction="column">
76+
<Flex direction="column" overflowX="hidden">
7177
<TouchableTooltip label={uploaded ? displayedValue : label}>
7278
<Text noOfLines={1}>{uploaded ? displayedValue : label}</Text>
7379
</TouchableTooltip>

0 commit comments

Comments
 (0)