Skip to content

Commit

Permalink
[NO CHANGELOG] [Add Tokens Widget] Fix double scrollbar token menu (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl authored Dec 2, 2024
1 parent d5f6d2a commit 3cc6777
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,13 @@ export function TokenDrawerMenu({
</Box>
)}
</Drawer.Target>
<Drawer.Content sx={{ paddingX: 'base.spacing.x2' }}>
<Drawer.Content sx={{
display: 'flex',
flexDirection: 'column',
height: '100%',
overflowY: 'hidden',
}}
>
<TextInput
sx={{ marginBottom: 'base.spacing.x2' }}
placeholder={t('views.ADD_TOKENS.tokenSelection.searchPlaceholder')}
Expand All @@ -258,7 +264,11 @@ export function TokenDrawerMenu({
>
<TextInput.Icon icon="Search" />
</TextInput>
<VerticalMenu sx={{ maxHeight: '100%' }}>
<VerticalMenu sx={{
maxHeight: '100%',
overflowY: 'auto',
}}
>
{tokenChoiceOptions
&& tokenChoiceOptions.length > 0
&& tokenChoiceOptions.map((token) => (
Expand Down

0 comments on commit 3cc6777

Please sign in to comment.