Re-center network dropdown

feature/default_network_editable
sdtsui 7 years ago
parent 4c0f827946
commit 8006d798ee
  1. 4
      ui/app/app.js
  2. 3
      ui/app/components/dropdown.js

@ -206,7 +206,9 @@ App.prototype.renderNetworkDropdown = function () {
left: '2px', left: '2px',
top: '36px', top: '36px',
}, },
innerStyle: {}, innerStyle: {
padding: '2px 16px 2px 0px',
},
}, [ }, [
h( h(

@ -7,7 +7,7 @@ const noop = () => {}
class Dropdown extends Component { class Dropdown extends Component {
render () { render () {
const { isOpen, onClickOutside, style, children } = this.props const { isOpen, onClickOutside, style, innerStyle, children } = this.props
return h( return h(
MenuDroppo, MenuDroppo,
@ -21,6 +21,7 @@ class Dropdown extends Component {
padding: '8px 16px', padding: '8px 16px',
background: 'rgba(0, 0, 0, 0.8)', background: 'rgba(0, 0, 0, 0.8)',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px', boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
...innerStyle,
}, },
}, },
[ [

Loading…
Cancel
Save