diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-31 11:42:12 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-31 11:42:12 +0800 |
commit | ca1a4b309676c3d10473acf4869b398d4ed50fb7 (patch) | |
tree | b259bec545e016dc4b3cd9c880c8de1eb40a2c50 /ui/app/app.js | |
parent | b15575b4530d4c1830af0471e9fb5bc1ee689ee3 (diff) | |
download | tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar.gz tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar.bz2 tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar.lz tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar.xz tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.tar.zst tangerine-wallet-browser-ca1a4b309676c3d10473acf4869b398d4ed50fb7.zip |
Add layout for main container elements
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 4d70f9df9..4f877bc51 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -9,7 +9,7 @@ const NewKeyChainScreen = require('./new-keychain') // unlock const UnlockScreen = require('./unlock') // accounts -const AccountDetailScreen = require('./account-detail') +const MainContainer = require('./main-container') const SendTransactionScreen = require('./send') const ConfirmTxScreen = require('./conf-tx') // notice @@ -90,13 +90,7 @@ App.prototype.render = function () { }), // panel content - h('.app-primary' + (transForward ? '.from-right' : '.from-left'), { - style: { - maxWidth: '850px', - }, - }, [ - this.renderPrimary(), - ]), + this.renderPrimary(), ]) ) } @@ -121,7 +115,7 @@ App.prototype.renderAppBar = function () { alignItems: 'center', visibility: props.isUnlocked ? 'visible' : 'none', background: '#EFEFEF', // $gallery - height: '11%', + height: '11vh', position: 'relative', zIndex: 12, }, @@ -132,6 +126,7 @@ App.prototype.renderAppBar = function () { display: 'flex', flexDirection: 'row', alignItems: 'center', + marginBottom: '1.8em', }, }, [ // mini logo @@ -156,6 +151,7 @@ App.prototype.renderAppBar = function () { display: 'flex', flexDirection: 'row', alignItems: 'center', + marginBottom: '1.8em', }, }, [ // Network Indicator @@ -419,8 +415,8 @@ App.prototype.renderPrimary = function () { switch (props.currentView.name) { case 'accountDetail': - log.debug('rendering account detail screen') - return h(AccountDetailScreen, {key: 'account-detail'}) + log.debug('rendering main container') + return h(MainContainer, {key: 'account-detail'}) case 'sendTransaction': log.debug('rendering send tx screen') @@ -488,7 +484,7 @@ App.prototype.renderPrimary = function () { default: log.debug('rendering default, account detail screen') - return h(AccountDetailScreen, {key: 'account-detail'}) + return h(MainContainer, {key: 'account-detail'}) } } |