Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sixty-zoos-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-kit-ui': patch
---

Fix token overflow ui bug on token selector
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,10 @@ const TokenSelector: FC<TokenSelectorProps> = ({
trigger={trigger}
css={{
p: '4',
overflowY: 'clip',
display: 'flex',
flexDirection: 'column',
height: 'auto',
maxHeight: 'min(85vh, 600px)',
'@media(min-width: 660px)': {
minWidth:
size === 'desktop'
Expand All @@ -581,7 +584,8 @@ const TokenSelector: FC<TokenSelectorProps> = ({
width: '100%',
height: '100%',
gap: '3',
position: 'relative'
position: 'relative',
overflowY: 'hidden'
}}
>
{tokenSelectorStep === TokenSelectorStep.SetCurrency ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const SetChainStep: FC<SetChainStepProps> = ({
gridTemplateColumns: isDesktop ? 'repeat(2, minmax(0, 1fr))' : 'none',
gridColumnGap: isDesktop ? '8px' : '0',
gridAutoRows: 'min-content',
height: 530,
maxHeight: 530,
overflowY: 'auto',
pb: '2',
gap: isDesktop ? '0' : '2',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ export const SetCurrencyStep: FC<SetCurrencyProps> = ({
>
Select Token
</Text>
<Flex css={{ width: '100%', gap: '3', height: '530px' }}>
<Flex
css={{ width: '100%', gap: '3', height: '100%', overflowY: 'hidden' }}
>
{isDesktop && (!configuredChainIds || configuredChainIds.length > 1) ? (
<>
<Flex
Expand Down
Loading