Skip to content

Commit

Permalink
fix: token select button i18n bug (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-toby authored Mar 2, 2023
1 parent 241b21c commit c9eb3da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/TokenSelect/TokenButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const StyledTokenButton = styled(Button)<{ approved?: boolean }>`
`

const TokenButtonRow = styled(Row)<{ empty: boolean }>`
flex-direction: row;
max-width: 12em;
overflow: hidden;
padding-left: ${({ empty }) => empty && 0.5}em;
Expand All @@ -51,7 +50,7 @@ export default function TokenButton({ value, approved, disabled, onClick }: Toke
disabled={disabled}
data-testid="token-select"
>
<TokenButtonRow empty={!value} flex gap={0.4}>
<TokenButtonRow empty={!value} flex gap={0.4} flow="nowrap">
{value ? (
<>
<Logo currency={value} symbol={value.symbol} />
Expand All @@ -60,7 +59,10 @@ export default function TokenButton({ value, approved, disabled, onClick }: Toke
</ThemedText.ButtonLarge>
</>
) : (
<ThemedText.ButtonLarge color={'onAccent'}>
<ThemedText.ButtonLarge
color={'onAccent'}
style={{ maxWidth: '10rem', textOverflow: 'ellipsis', overflow: 'hidden' }}
>
<Trans>Select a token</Trans>
</ThemedText.ButtonLarge>
)}
Expand Down

1 comment on commit c9eb3da

@vercel
Copy link

@vercel vercel bot commented on c9eb3da Mar 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-git-main-uniswap.vercel.app
widgets-seven-tau.vercel.app
widgets-uniswap.vercel.app

Please sign in to comment.