fix: token img overflow (#3517)

This commit is contained in:
Zach Pomerantz 2022-03-15 06:01:32 -07:00 committed by GitHub
parent e45c104135
commit 4dd74f2144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,7 +24,12 @@ const TokenButtonRow = styled(Row)<{ collapsed: boolean }>`
height: 1.2em;
// max-width must have an absolute value in order to transition.
max-width: ${({ collapsed }) => (collapsed ? '1.2em' : '12em')};
overflow: hidden;
transition: max-width 0.25s linear;
img {
min-width: 1.2em;
}
`
interface TokenButtonProps {