From 0f140c5db59e72836ec437063314b39f33bae100 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Sun, 6 Aug 2017 22:30:27 -0700 Subject: Improve positioning of caret and add reusable color for wallet view --- ui/app/components/wallet-view.js | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'ui/app/components/wallet-view.js') diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index c96819ab9..ad84ee6a8 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -57,7 +57,10 @@ WalletView.prototype.render = function () { ]), h('div.flex-column.flex-center', { - + style: { + // constrains size of absolutely positioned wrappers + position: 'relative', + }, }, [ h('.identicon-wrapper.select-none', { @@ -77,31 +80,19 @@ WalletView.prototype.render = function () { 'Account 1' ]), - // h(AccountDropdowns, { - // style: { - // // position: 'absolute', - // // left: '58.5%', - // // top: '10.25%', - // }, - // selected, - // network, - // identities, - // enableAccountsSelector: true, - // }, []), - h('div.flex-column.flex-center,', { + h(AccountDropdowns, { style: { position: 'absolute', - marginLeft: '42px', - marginTop: '-10px', + left: '66.5%', + top: '19.5%', }, - }, h('i.fa.fa-angle-down', {}, [])), - + selected, + network, + identities, + enableAccountsSelector: true, + }, []), ]), - // position: absolute; - // left: 58.5%; - // top: 10.25%; - h( AccountDropdowns, { -- cgit