diff options
author | Dan <danjm.com@gmail.com> | 2017-12-09 02:19:59 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-12-13 04:31:52 +0800 |
commit | 70557e0448a89f5d04be15b7f8152bd398273dbe (patch) | |
tree | 798d473942c3d925d1b9dcce9d8fbd3a59e30604 /old-ui | |
parent | 71d6403304ad25023efbfb96b00cd420e2d18628 (diff) | |
download | tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar.gz tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar.bz2 tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar.lz tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar.xz tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.tar.zst tangerine-wallet-browser-70557e0448a89f5d04be15b7f8152bd398273dbe.zip |
Flex account-data-subsection
Diffstat (limited to 'old-ui')
-rw-r--r-- | old-ui/app/account-detail.js | 37 | ||||
-rw-r--r-- | old-ui/app/components/account-dropdowns.js | 1 | ||||
-rw-r--r-- | old-ui/app/components/editable-label.js | 1 |
3 files changed, 20 insertions, 19 deletions
diff --git a/old-ui/app/account-detail.js b/old-ui/app/account-detail.js index 933f6d6a4..121f84a0d 100644 --- a/old-ui/app/account-detail.js +++ b/old-ui/app/account-detail.js @@ -78,10 +78,9 @@ AccountDetailScreen.prototype.render = function () { address: selected, }), ]), - h('flex-column', { + h('div.flex-column', { style: { lineHeight: '10px', - marginLeft: '15px', width: '100%', }, }, [ @@ -90,6 +89,9 @@ AccountDetailScreen.prototype.render = function () { state: { isEditingLabel: false, }, + nameLabelStyle: { + marginLeft: '15px', + }, saveText: (text) => { props.dispatch(actions.saveAccountLabel(selected, text)) }, @@ -102,7 +104,7 @@ AccountDetailScreen.prototype.render = function () { { style: { display: 'flex', - justifyContent: 'flex-start', + justifyContent: 'space-between', alignItems: 'center', }, }, @@ -132,8 +134,6 @@ AccountDetailScreen.prototype.render = function () { AccountDropdowns, { style: { - marginRight: '8px', - marginLeft: 'auto', cursor: 'pointer', }, selected, @@ -147,7 +147,6 @@ AccountDetailScreen.prototype.render = function () { ]), h('.flex-row', { style: { - width: '15em', justifyContent: 'space-between', alignItems: 'baseline', }, @@ -164,6 +163,7 @@ AccountDetailScreen.prototype.render = function () { fontSize: '13px', fontFamily: 'Montserrat Light', textRendering: 'geometricPrecision', + marginTop: '15px', marginBottom: '15px', color: '#AEAEAE', }, @@ -191,20 +191,21 @@ AccountDetailScreen.prototype.render = function () { }, }), - h('.flex-grow'), + h('div', {}, [ - h('button', { - onClick: () => props.dispatch(actions.buyEthView(selected)), - style: { marginRight: '10px' }, - }, 'BUY'), + h('button', { + onClick: () => props.dispatch(actions.buyEthView(selected)), + style: { marginRight: '10px' }, + }, 'BUY'), - h('button', { - onClick: () => props.dispatch(actions.showSendPage()), - style: { - marginBottom: '20px', - marginRight: '8px', - }, - }, 'SEND'), + h('button', { + onClick: () => props.dispatch(actions.showSendPage()), + style: { + marginBottom: '20px', + }, + }, 'SEND'), + + ]), ]), ]), diff --git a/old-ui/app/components/account-dropdowns.js b/old-ui/app/components/account-dropdowns.js index c0ebe3c60..a3908f45d 100644 --- a/old-ui/app/components/account-dropdowns.js +++ b/old-ui/app/components/account-dropdowns.js @@ -268,7 +268,6 @@ class AccountDropdowns extends Component { 'i.fa.fa-ellipsis-h', { style: { - marginRight: '0.5em', fontSize: '1.8em', }, onClick: (event) => { diff --git a/old-ui/app/components/editable-label.js b/old-ui/app/components/editable-label.js index 8a5c8954f..88993d837 100644 --- a/old-ui/app/components/editable-label.js +++ b/old-ui/app/components/editable-label.js @@ -29,6 +29,7 @@ EditableLabel.prototype.render = function () { ]) } else { return h('div.name-label', { + style: props.nameLabelStyle, onClick: (event) => { const nameAttribute = event.target.getAttribute('name') // checks for class to handle smaller CTA above the account name |