aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-03-02 05:12:10 +0800
committerDan J Miller <danjm.com@gmail.com>2018-03-02 05:12:10 +0800
commitf22dfd4ae8031e3f7b4972a1cc8f119b99007717 (patch)
treea6f76a8181cb3b5cc88815931a8e20c9b8e8b2fd /ui/app/components
parentace4f0d998d75e9df8c31641a292abc4f703582f (diff)
downloadtangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar.gz
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar.bz2
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar.lz
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar.xz
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.tar.zst
tangerine-wallet-browser-f22dfd4ae8031e3f7b4972a1cc8f119b99007717.zip
Fix network menu for custom URLs (#3366)
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/dropdowns/network-dropdown.js40
1 files changed, 27 insertions, 13 deletions
diff --git a/ui/app/components/dropdowns/network-dropdown.js b/ui/app/components/dropdowns/network-dropdown.js
index dfaa6b22c..9be5cc5d1 100644
--- a/ui/app/components/dropdowns/network-dropdown.js
+++ b/ui/app/components/dropdowns/network-dropdown.js
@@ -84,7 +84,7 @@ NetworkDropdown.prototype.render = function () {
style: {
position: 'absolute',
top: '58px',
- minWidth: '309px',
+ width: '309px',
zIndex: '55px',
},
innerStyle: {
@@ -276,11 +276,21 @@ NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) {
key: `common${rpc}`,
closeMenu: () => this.props.hideNetworkDropdown(),
onClick: () => props.setRpcTarget(rpc),
+ style: {
+ fontFamily: 'DIN OT',
+ fontSize: '16px',
+ lineHeight: '20px',
+ padding: '12px 0',
+ },
},
[
- h('i.fa.fa-question-circle.fa-lg.menu-icon'),
- rpc,
- rpcTarget === rpc ? h('.check', '✓') : null,
+ rpcTarget === rpc ? h('i.fa.fa-check') : h('.network-check__transparent', '✓'),
+ h('i.fa.fa-question-circle.fa-med.menu-icon-circle'),
+ h('span.network-name-item', {
+ style: {
+ color: rpcTarget === rpc ? '#ffffff' : '#9b9b9b',
+ },
+ }, rpc),
]
)
}
@@ -293,12 +303,6 @@ NetworkDropdown.prototype.renderCustomOption = function (provider) {
if (type !== 'rpc') return null
- // Concatenate long URLs
- let label = rpcTarget
- if (rpcTarget.length > 31) {
- label = label.substr(0, 34) + '...'
- }
-
switch (rpcTarget) {
case 'http://localhost:8545':
@@ -311,11 +315,21 @@ NetworkDropdown.prototype.renderCustomOption = function (provider) {
key: rpcTarget,
onClick: () => props.setRpcTarget(rpcTarget),
closeMenu: () => this.props.hideNetworkDropdown(),
+ style: {
+ fontFamily: 'DIN OT',
+ fontSize: '16px',
+ lineHeight: '20px',
+ padding: '12px 0',
+ },
},
[
- h('i.fa.fa-question-circle.fa-lg.menu-icon'),
- label,
- h('.check', '✓'),
+ h('i.fa.fa-check'),
+ h('i.fa.fa-question-circle.fa-med.menu-icon-circle'),
+ h('span.network-name-item', {
+ style: {
+ color: '#ffffff',
+ },
+ }, rpcTarget),
]
)
}