aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/account-detail.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-12-15 08:46:36 +0800
committerGitHub <noreply@github.com>2016-12-15 08:46:36 +0800
commite6c01abba4b66c6ef98a9d8155439be002dea5cd (patch)
tree221def76735c59e00fc7a511e260f835210a9057 /ui/app/account-detail.js
parent9e3fa3cfba20299413df87d18158180c7798d2ac (diff)
parent3969526403c487eb45f8a34774b3267ab126cdda (diff)
downloadtangerine-wallet-browser-e6c01abba4b66c6ef98a9d8155439be002dea5cd.tar.gz
tangerine-wallet-browser-e6c01abba4b66c6ef98a9d8155439be002dea5cd.tar.zst
tangerine-wallet-browser-e6c01abba4b66c6ef98a9d8155439be002dea5cd.zip
Merge pull request #920 from luisivan/dev
Interface enhancements
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r--ui/app/account-detail.js44
1 files changed, 9 insertions, 35 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js
index c41ba61fd..d456d125a 100644
--- a/ui/app/account-detail.js
+++ b/ui/app/account-detail.js
@@ -70,54 +70,43 @@ AccountDetailScreen.prototype.render = function () {
// large identicon and addresses
h('.identicon-wrapper.select-none', [
h(Identicon, {
- diameter: 62,
+ diameter: 48,
address: selected,
}),
]),
h('flex-column', {
style: {
+ width: '100%',
lineHeight: '10px',
marginLeft: '15px',
},
}, [
h(EditableLabel, {
textValue: identity ? identity.name : '',
- state: {
- isEditingLabel: false,
- },
saveText: (text) => {
props.dispatch(actions.saveAccountLabel(selected, text))
},
}, [
// What is shown when not editing + edit text:
- h('label.editing-label', [h('.edit-text', 'edit')]),
h('h2.font-medium.color-forest', {name: 'edit'}, identity && identity.name),
]),
h('.flex-row', {
style: {
- width: '15em',
+ width: '100%',
justifyContent: 'space-between',
alignItems: 'baseline',
},
}, [
- // address
-
- h('div', {
+ // balance
+ h(EthBalance, {
+ value: account && account.balance,
style: {
- overflow: 'hidden',
- textOverflow: 'ellipsis',
- paddingTop: '3px',
- width: '5em',
- fontSize: '13px',
- fontFamily: 'Montserrat Light',
- textRendering: 'geometricPrecision',
+ lineHeight: '7px',
marginTop: '10px',
- marginBottom: '15px',
- color: '#AEAEAE',
},
- }, ethUtil.toChecksumAddress(selected)),
+ }),
// copy and export
@@ -171,33 +160,18 @@ AccountDetailScreen.prototype.render = function () {
]),
]),
]),
-
- // account ballence
-
]),
]),
h('.flex-row', {
style: {
- justifyContent: 'space-between',
- alignItems: 'flex-start',
+ justifyContent: 'flex-end',
},
}, [
-
- h(EthBalance, {
- value: account && account.balance,
- style: {
- lineHeight: '7px',
- marginTop: '10px',
- },
- }),
-
h('button', {
onClick: () => props.dispatch(actions.buyEthView(selected)),
style: {
marginBottom: '20px',
marginRight: '8px',
- position: 'absolute',
- left: '219px',
},
}, 'BUY'),