diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-07-01 06:15:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 06:15:14 +0800 |
commit | 3559d866815def84d95d116831b30bb679af0461 (patch) | |
tree | b03f83a4bca2217be3911e4e5f6d9a7994dce1e5 /ui/app/components/eth-balance.js | |
parent | 213c84336e1083f4abe278ac2f70c45124c6ab62 (diff) | |
parent | 8465be340a884401c9edbf942f01920a07ddf2e4 (diff) | |
download | tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar.gz tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar.bz2 tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar.lz tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar.xz tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.tar.zst tangerine-wallet-browser-3559d866815def84d95d116831b30bb679af0461.zip |
Merge pull request #375 from MetaMask/compactLayout
Compact layout
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r-- | ui/app/components/eth-balance.js | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js index 710d4fc8b..c7240ea21 100644 --- a/ui/app/components/eth-balance.js +++ b/ui/app/components/eth-balance.js @@ -24,8 +24,34 @@ EthBalanceComponent.prototype.render = function () { style: { display: 'inline', }, - }, value), + }, this.renderBalance(value)), ]) ) } +EthBalanceComponent.prototype.renderBalance = function (value) { + + if (value === 'None') return value + + var balance = value.split(' ')[0] + var label = value.split(' ')[1] + + return ( + h('.flex-column', { + style: { + alignItems: 'flex-end', + lineHeight: '13px', + fontFamily: 'Montserrat Thin', + textRendering: 'geometricPrecision', + }, + }, [ + h('div', balance), + h('div', { + style: { + color: ' #AEAEAE', + fontSize: '12px', + }, + }, label), + ]) + ) +} |