mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Better account details view
This commit is contained in:
parent
c65db9290d
commit
4a8bc63c8d
@ -76,6 +76,7 @@ AccountDetailScreen.prototype.render = function () {
|
||||
]),
|
||||
h('flex-column', {
|
||||
style: {
|
||||
width: '100%',
|
||||
lineHeight: '10px',
|
||||
marginLeft: '15px',
|
||||
},
|
||||
@ -92,28 +93,20 @@ AccountDetailScreen.prototype.render = function () {
|
||||
]),
|
||||
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
|
||||
|
||||
@ -167,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'),
|
||||
|
||||
|
@ -126,14 +126,6 @@ App.prototype.renderAppBar = function () {
|
||||
alignItems: 'center',
|
||||
},
|
||||
}, [
|
||||
|
||||
// mini logo
|
||||
h('img', {
|
||||
height: 24,
|
||||
width: 24,
|
||||
src: '/images/icon-128.png',
|
||||
}),
|
||||
|
||||
h(NetworkIndicator, {
|
||||
network: this.props.network,
|
||||
provider: this.props.provider,
|
||||
|
@ -13,7 +13,10 @@ function EditableLabel () {
|
||||
EditableLabel.prototype.render = function () {
|
||||
return h('div.name-label', {
|
||||
contentEditable: true,
|
||||
style: { outline: 'none' },
|
||||
style: {
|
||||
outline: 'none',
|
||||
marginTop: '0.5rem',
|
||||
},
|
||||
onInput: (event) => this.saveText(),
|
||||
}, this.props.children)
|
||||
}
|
||||
|
@ -17,6 +17,6 @@ Tooltip.prototype.render = function () {
|
||||
return h(ReactTooltip, {
|
||||
position: position || 'left',
|
||||
title,
|
||||
fixed: false,
|
||||
fixed: true,
|
||||
}, children)
|
||||
}
|
||||
|
@ -79,10 +79,9 @@ TransactionList.prototype.render = function () {
|
||||
height: '100%',
|
||||
},
|
||||
}, [
|
||||
'No transaction history.',
|
||||
'No transaction history',
|
||||
]),
|
||||
]),
|
||||
])
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user