Skip to content

Commit

Permalink
Tokens: fix the text overflow in the header (aragon#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Nov 4, 2019
1 parent b65833a commit 4d42373
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,28 @@ class App extends React.PureComponent {
css={`
display: flex;
align-items: center;
flex: 1 1 auto;
width: 0;
`}
>
<h1
css={`
${textStyle(
layoutName === 'small' ? 'title3' : 'title2'
)};
color: ${theme.content};
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: ${1 * GU}px;
color: ${theme.content};
`}
>
Tokens
</h1>
{tokenSymbol && <Tag mode="identifier">{tokenSymbol}</Tag>}
<div css="flex-shrink: 0">
{tokenSymbol && <Tag mode="identifier">{tokenSymbol}</Tag>}
</div>
</div>
}
secondary={
Expand Down

0 comments on commit 4d42373

Please sign in to comment.