Select localhost:8545 in the list of networks fix, fix width for Edit account input, hide vertical scroll in main menu

This commit is contained in:
Victor Baranov 2018-08-08 20:16:19 +03:00
parent 5c89c968be
commit 2528f9ca9e
3 changed files with 19 additions and 3 deletions

View File

@ -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',
]
),

View File

@ -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)
},

View File

@ -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