Skip to content

Commit

Permalink
Improve alignments in deleagte list
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Feb 14, 2018
1 parent f53a8f6 commit fba4e8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions src/components/delegateList/delegateList.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@
font-size: 15px;
font-weight: 500;
vertical-align: middle;
margin-left: 10px;

&:not(:last-of-type) {
margin-right: 40px;
margin-right: 24px;
}
}

Expand All @@ -178,6 +179,10 @@
}
}

.productivity {
text-align: right;
}

.search {
position: relative;

Expand Down Expand Up @@ -291,6 +296,10 @@
transition: all ease 200ms;
font-weight: 700;
}

& .productivity {
direction: rtl;
}
}

& .row {
Expand Down Expand Up @@ -379,7 +388,7 @@
width: 100%;
position: fixed;
top: 67px;
left: 8px;
left: 0;
z-index: 2;
background: var(--color-white);
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.5);
Expand Down
2 changes: 1 addition & 1 deletion src/components/delegateList/delegateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class DelegateList extends React.Component {
<li className={`${grid['col-md-1']} ${grid['col-xs-2']}`}>{this.props.t('Rank')}</li>
<li className={`${grid['col-md-3']} ${grid['col-xs-5']}`}>{this.props.t('Name')}</li>
<li className={`${grid['col-md-5']}`}>{this.props.t('Lisk ID')}</li>
<li className={`${grid['col-md-2']} ${grid['col-xs-3']}`}>{this.props.t('Productivity')}</li>
<li className={`${grid['col-md-2']} ${grid['col-xs-3']} ${styles.productivity}`}>{this.props.t('Productivity')}</li>
</ul>
{ this.getList(filteredList) }
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/delegateList/votingRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class VotingRow extends React.Component {
<li className={`${grid['col-md-1']} ${grid['col-xs-2']}`}>{data.rank}</li>
<li className={`${grid['col-md-3']} ${grid['col-xs-5']} ${styles.username}`}>{data.username}</li>
<li className={`${grid['col-md-5']}`}>{data.address}</li>
<li className={`${grid['col-md-2']} ${grid['col-xs-3']}`}>{data.productivity} %</li>
<li className={`${grid['col-md-2']} ${grid['col-xs-3']} ${styles.productivity}`}>{data.productivity} %</li>
</ul>
);
}
Expand Down

0 comments on commit fba4e8f

Please sign in to comment.