Commit 4dd74f21 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: token img overflow (#3517)

parent e45c1041
...@@ -24,7 +24,12 @@ const TokenButtonRow = styled(Row)<{ collapsed: boolean }>` ...@@ -24,7 +24,12 @@ const TokenButtonRow = styled(Row)<{ collapsed: boolean }>`
height: 1.2em; height: 1.2em;
// max-width must have an absolute value in order to transition. // max-width must have an absolute value in order to transition.
max-width: ${({ collapsed }) => (collapsed ? '1.2em' : '12em')}; max-width: ${({ collapsed }) => (collapsed ? '1.2em' : '12em')};
overflow: hidden;
transition: max-width 0.25s linear; transition: max-width 0.25s linear;
img {
min-width: 1.2em;
}
` `
interface TokenButtonProps { interface TokenButtonProps {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment