1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix odd relative position conflict so main icon is rounded - See flyswatter/jazzicon/issues/1

This commit is contained in:
sdtsui 2017-08-14 07:33:43 +02:00
parent d01a663342
commit b900da885e

View File

@ -88,21 +88,29 @@ WalletView.prototype.render = function () {
]), ]),
h('div.flex-column.flex-center', { h('div.flex-column.flex-center', {
}, [
h('div', {
style: { style: {
position: 'relative', position: 'relative',
}, }
}, [ }, [
h(AccountDropdowns, {
h('.identicon-wrapper.select-none', {
style: { style: {
marginBottom: '1%', position: 'absolute',
left: 'calc(50% + 28px + 5.5px)',
top: '14px',
}, },
}, [ selected: selectedAddress,
network,
identities,
enableAccountsSelector: true,
}, []),
]),
h(Identicon, { h(Identicon, {
diameter: 54, diameter: 54,
address: selectedAddress, address: selectedAddress,
}), }),
]),
h('span.account-name', { h('span.account-name', {
style: {} style: {}
@ -110,17 +118,6 @@ WalletView.prototype.render = function () {
'Account 1' 'Account 1'
]), ]),
h(AccountDropdowns, {
style: {
position: 'absolute',
left: 'calc(50% + 28px + 5.5px)',
top: '19.5%',
},
selected: selectedAddress,
network,
identities,
enableAccountsSelector: true,
}, []),
]), ]),
]), ]),