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 }}>
{Icon && <Icon size={16} />}
</Box>
<Box ff="Open Sans|SemiBold" fontSize={3} color="dark">
{accountName}
</Box>
<AccountNameEllipsis>{accountName}</AccountNameEllipsis>
</Cell>
)
}
}
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