Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fixes too long desc and Token Balance Value (#2891) (#2902)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac authored and jacogr committed Oct 26, 2016
1 parent 0e14738 commit f7259c2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
18 changes: 12 additions & 6 deletions js/src/ui/Balance/balance.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,25 @@
border-radius: 16px;
margin: 0.75em 0.5em 0 0;
max-height: 24px;
max-width: 100%;
display: flex;
align-items: center;
}

.balance img {
display: inline-block;
height: 32px;
margin: -4px 1em 0 0;
width: 32px;
}

.balance div {
display: inline-block;
/*font-family: 'Roboto Mono', monospace;*/
line-height: 24px;
.balanceValue {
margin: 0 1em 0 0;
vertical-align: top;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

.balanceTag {
font-size: 0.85em;
padding-right: 0.75rem;
}
5 changes: 4 additions & 1 deletion js/src/ui/Balance/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ class Balance extends Component {
<img
src={ imagesrc }
alt={ token.name } />
<div>{ value }<small> { token.tag }</small></div>
<div className={ styles.balanceValue }>
<span title={ value }> { value } </span>
</div>
<div className={ styles.balanceTag }> { token.tag } </div>
</div>
);
});
Expand Down
3 changes: 3 additions & 0 deletions js/src/ui/Container/Title/title.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/
.byline {
color: #aaa;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

.title {
Expand Down
2 changes: 1 addition & 1 deletion js/src/ui/Container/Title/title.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class Title extends Component {
{ this.props.title }
</h3>
<div className={ styles.byline }>
{ this.props.byline }
<span title={ this.props.byline }>{ this.props.byline }</span>
</div>
</div>
);
Expand Down

0 comments on commit f7259c2

Please sign in to comment.