Fixes too long desc and Token Balance Value (#2891) (#2902)

This commit is contained in:
Nicolas Gotchac 2016-10-26 21:25:03 +02:00 committed by Jaco Greeff
parent 0e14738147
commit f7259c26d1
4 changed files with 20 additions and 8 deletions

View File

@ -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;
}

View File

@ -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>
);
});

View File

@ -16,6 +16,9 @@
*/
.byline {
color: #aaa;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.title {

View File

@ -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>
);