From 2528f9ca9ea55ba964963b7d72b242ad1dba65aa Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 8 Aug 2018 20:16:19 +0300 Subject: [PATCH] Select localhost:8545 in the list of networks fix, fix width for Edit account input, hide vertical scroll in main menu --- old-ui/app/app.js | 6 +++--- old-ui/app/components/editable-label.js | 3 +++ old-ui/app/css/index.css | 13 +++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/old-ui/app/app.js b/old-ui/app/app.js index 5fc091661..0229bfc39 100644 --- a/old-ui/app/app.js +++ b/old-ui/app/app.js @@ -241,7 +241,7 @@ App.prototype.renderAppBar = function () { App.prototype.renderNetworkDropdown = function () { const props = this.props - const { provider: { type: providerType, rpcTarget: activeNetwork } } = props + const { provider: { type: providerType } } = props const rpcList = props.frequentRpcList const state = this.state || {} const isOpen = state.isNetworkMenuOpen @@ -385,10 +385,10 @@ App.prototype.renderNetworkDropdown = function () { style: { paddingLeft: '20px', fontSize: '16px', - color: activeNetwork === 'http://localhost:8545' ? 'white' : '', + color: providerType === 'localhost' ? 'white' : '', }, }, - [h(activeNetwork === 'http://localhost:8545' ? 'div.selected-network' : ''), + [h(providerType === 'localhost' ? 'div.selected-network' : ''), 'Localhost 8545', ] ), diff --git a/old-ui/app/components/editable-label.js b/old-ui/app/components/editable-label.js index 8a5c8954f..ee4a9e458 100644 --- a/old-ui/app/components/editable-label.js +++ b/old-ui/app/components/editable-label.js @@ -19,6 +19,9 @@ EditableLabel.prototype.render = function () { h('input.sizing-input', { defaultValue: props.textValue, maxLength: '20', + style: { + width: '146px', + }, onKeyPress: (event) => { this.saveIfEnter(event) }, diff --git a/old-ui/app/css/index.css b/old-ui/app/css/index.css index 6be0e22b1..7919efc9e 100644 --- a/old-ui/app/css/index.css +++ b/old-ui/app/css/index.css @@ -28,6 +28,19 @@ html { min-height: 500px; } +.account-detail-section::-webkit-scrollbar { + width: 0; +} + +.account-detail-section::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); +} + +.account-detail-section::-webkit-scrollbar-thumb { + background-color: darkgrey; + outline: 1px solid slategrey; +} + .app-root { overflow: hidden; position: relative