fix: accomodate longer locales (#3468)

This commit is contained in:
Zach Pomerantz 2022-03-10 08:57:36 -08:00 committed by GitHub
parent b4bd2973a9
commit ea73260e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,8 @@ const StyledTokenButton = styled(Button)<{ empty?: boolean }>`
const TokenButtonRow = styled(Row)<{ collapsed: boolean }>`
height: 1.2em;
max-width: ${({ collapsed }) => (collapsed ? '1.2' : '8.2')}em;
// max-width must have an absolute value in order to transition.
max-width: ${({ collapsed }) => (collapsed ? '1.2em' : '12em')};
overflow-x: hidden;
transition: max-width 0.25s linear;
`