Browse Source

Merge pull request #604 from NastiaS/minorFixesBranch

add ellipsis to the account name on operation row
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
9ceb01bec0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      src/components/OperationsList/AccountCell.js

16
src/components/OperationsList/AccountCell.js

@ -29,12 +29,22 @@ class AccountCell extends PureComponent<Props> {
<Box alignItems="center" justifyContent="center" style={{ color: currency.color }}> <Box alignItems="center" justifyContent="center" style={{ color: currency.color }}>
{Icon && <Icon size={16} />} {Icon && <Icon size={16} />}
</Box> </Box>
<Box ff="Open Sans|SemiBold" fontSize={3} color="dark"> <AccountNameEllipsis>{accountName}</AccountNameEllipsis>
{accountName}
</Box>
</Cell> </Cell>
) )
} }
} }
export default AccountCell export default AccountCell
const AccountNameEllipsis = styled(Box).attrs({
ff: 'Open Sans|SemiBold',
fontSize: 3,
color: 'dark',
flexShrink: 1,
})`
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`

Loading…
Cancel
Save