diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-13 02:35:50 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-13 02:35:50 +0800 |
commit | 6fcbb43c504b7a76cc28e47f1d63adf06264415f (patch) | |
tree | 94926ef997f90dbb56310060d5b05dc3e6b4245b /ui/app/accounts | |
parent | 4a47f26e8caaea5e85820f0684fdb86ccb43196b (diff) | |
parent | b8f75e387a91135b870c9f268977445c8e0877a4 (diff) | |
download | tangerine-wallet-browser-6fcbb43c504b7a76cc28e47f1d63adf06264415f.tar.gz tangerine-wallet-browser-6fcbb43c504b7a76cc28e47f1d63adf06264415f.tar.zst tangerine-wallet-browser-6fcbb43c504b7a76cc28e47f1d63adf06264415f.zip |
Merge branch 'master' into FixPasswording
Diffstat (limited to 'ui/app/accounts')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 13 | ||||
-rw-r--r-- | ui/app/accounts/index.js | 4 |
2 files changed, 10 insertions, 7 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 4e0d69ed7..0b4acdfec 100644 --- a/ui/app/accounts/account-list-item.js +++ b/ui/app/accounts/account-list-item.js @@ -7,14 +7,14 @@ const EthBalance = require('../components/eth-balance') const CopyButton = require('../components/copyButton') const Identicon = require('../components/identicon') -module.exports = AccountListItem +module.exports = NewComponent -inherits(AccountListItem, Component) -function AccountListItem () { +inherits(NewComponent, Component) +function NewComponent () { Component.call(this) } -AccountListItem.prototype.render = function () { +NewComponent.prototype.render = function () { const identity = this.props.identity var isSelected = this.props.selectedAddress === identity.address var account = this.props.accounts[identity.address] @@ -23,6 +23,9 @@ AccountListItem.prototype.render = function () { return ( h(`.accounts-list-option.flex-row.flex-space-between.pointer.hover-white${selectedClass}`, { key: `account-panel-${identity.address}`, + style: { + flex: '1 0 auto', + }, onClick: (event) => this.props.onShowDetail(identity.address, event), }, [ @@ -70,7 +73,7 @@ AccountListItem.prototype.render = function () { ) } -AccountListItem.prototype.pendingOrNot = function () { +NewComponent.prototype.pendingOrNot = function () { const pending = this.props.pending if (pending.length === 0) return null return h('.pending-dot', pending.length) diff --git a/ui/app/accounts/index.js b/ui/app/accounts/index.js index d3c84d387..c20900c1e 100644 --- a/ui/app/accounts/index.js +++ b/ui/app/accounts/index.js @@ -84,7 +84,7 @@ AccountsScreen.prototype.render = function () { }) }), - h('hr.horizontal-line'), + h('hr.horizontal-line', {key: 'horizontal-line1'}), h('div.footer.hover-white.pointer', { key: 'reveal-account-bar', onClick: () => { @@ -92,6 +92,7 @@ AccountsScreen.prototype.render = function () { }, style: { display: 'flex', + flex: '1 0 auto', height: '40px', paddint: '10px', justifyContent: 'center', @@ -100,7 +101,6 @@ AccountsScreen.prototype.render = function () { }, [ h('i.fa.fa-plus.fa-lg', {key: ''}), ]), - h('hr.horizontal-line'), ]), unconfTxList.length ? ( |