Skip to content

Commit

Permalink
Add when when too many accounts (openethereum#7677)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored and jacogr committed Jan 23, 2018
1 parent 66322c7 commit 6d60286
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions js/src/Status/DefaultAccount/defaultAccount.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
.list {
margin: 0 !important;
padding: 1em 1em !important;
background-color: #f5f5f5;
background-color: white;

}

.isDefault {
background-color: white;
.accountsList {
background-color: #f5f5f5;
height: 300px;
overflow-y: auto;
}

.hasOtherAccounts {
Expand Down
4 changes: 2 additions & 2 deletions js/src/Status/DefaultAccount/defaultAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ class DefaultAccount extends Component {
}
content={
<div>
<List relaxed='very' selection className={ [styles.list, styles.isDefault, allAccounts.length > 1 && styles.hasOtherAccounts].join(' ') }>
<List relaxed='very' selection className={ [styles.list, allAccounts.length > 1 && styles.hasOtherAccounts].join(' ') }>
<AccountItem
isDefault
account={ defaultAccount }
/>
</List>
{allAccounts.length > 1 &&
<List relaxed='very' selection className={ styles.list } divided>
<List relaxed='very' selection className={ [styles.list, styles.accountsList].join(' ') } divided>
{allAccounts
.filter(({ address }) => address !== defaultAddress)
.map(account => (
Expand Down

0 comments on commit 6d60286

Please sign in to comment.