Skip to content

Commit

Permalink
Holders: set max width on smaller screens (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka authored Oct 3, 2019
1 parent e90e917 commit c685c43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/token-manager/app/src/screens/Holders.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
IconRemove,
Split,
GU,
useLayout,
useTheme,
} from '@aragon/ui'
import { formatBalance } from '../utils'
Expand All @@ -33,6 +34,8 @@ function Holders({
tokenSymbol,
tokenTransfersEnabled,
}) {
const { layoutName } = useLayout()
const compact = layoutName === 'small'
const connectedAccount = useConnectedAccount()
const mappedEntries = useMemo(
() => holders.map(({ address, balance }) => [address, balance]),
Expand All @@ -54,6 +57,7 @@ function Holders({
css={`
display: flex;
align-items: center;
max-width: ${compact ? '50vw' : 'unset'};
`}
>
<LocalIdentityBadge
Expand Down

0 comments on commit c685c43

Please sign in to comment.