Fix margin, padding, height for header.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent d5998d3b07
commit 799627189d
  1. 81
      ui/app/app.js
  2. 16
      ui/app/css/itcss/components/header.scss
  3. 6
      ui/app/css/itcss/components/newui-sections.scss

@ -198,46 +198,47 @@ App.prototype.renderAppBar = function () {
h('.app-header.flex-row.flex-space-between', { h('.app-header.flex-row.flex-space-between', {
style: {}, style: {},
}, [ }, [
h('div.app-header-contents', {}, [
h('div.left-menu-wrapper', { h('div.left-menu-wrapper', {
style: {}, style: {},
}, [ }, [
// mini logo // mini logo
h('img', { h('img', {
height: 24, height: 24,
width: 24, width: 24,
src: '/images/icon-128.png', src: '/images/icon-128.png',
}), }),
// metamask name // metamask name
h('h1', { h('h1', {
style: { style: {
position: 'relative', position: 'relative',
left: '9px', left: '9px',
}, },
}, 'MetaMask'), }, 'MetaMask'),
]), ]),
h('div.network-component-wrapper', { h('div.network-component-wrapper', {
style: {}, style: {},
}, [ }, [
// Network Indicator // Network Indicator
h(NetworkIndicator, { h(NetworkIndicator, {
network: this.props.network, network: this.props.network,
provider: this.props.provider, provider: this.props.provider,
onClick: (event) => { onClick: (event) => {
event.preventDefault() event.preventDefault()
event.stopPropagation() event.stopPropagation()
if (this.props.networkDropdownOpen === false) { if (this.props.networkDropdownOpen === false) {
this.props.showNetworkDropdown() this.props.showNetworkDropdown()
} else { } else {
this.props.hideNetworkDropdown() this.props.hideNetworkDropdown()
} }
}, },
}), }),
]), ]),
])
]), ]),
]) ])

@ -3,8 +3,8 @@
visibility: visible; visibility: visible;
background: $gallery; background: $gallery;
padding: 6px 8px; padding: 6px 8px;
height: 12vh; height: 14.4vh;
max-height: 60px; max-height: 97px;
position: relative; position: relative;
z-index: $header-z-index; z-index: $header-z-index;
@ -17,6 +17,18 @@
} }
} }
.app-header-contents {
display: flex;
justify-content: inherit;
width: 100%;
@media screen and (min-width: 576px) {
width: 80vw;
margin-left: 10vw;
margin-bottom: 15px;
}
}
.app-header h1 { .app-header h1 {
font-family: 'Montserrat Regular'; font-family: 'Montserrat Regular';
text-transform: uppercase; text-transform: uppercase;

@ -106,7 +106,7 @@ $wallet-view-bg: $wild-sand;
@media screen and (min-width: 769px) { @media screen and (min-width: 769px) {
.main-container { .main-container {
margin-top: 35px; margin-top: 6.9vh;
width: 80%; width: 80%;
height: 82vh; height: 82vh;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08); box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
@ -115,7 +115,7 @@ $wallet-view-bg: $wild-sand;
@media screen and (min-width: 1281px) { @media screen and (min-width: 1281px) {
.main-container { .main-container {
margin-top: 35px; margin-top: 6.9vh;
width: 65%; width: 65%;
height: 82vh; height: 82vh;
box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08); box-shadow: 0 0 7px 0 rgba(0, 0, 0, .08);
@ -162,5 +162,5 @@ $wallet-view-bg: $wild-sand;
.account-options-menu { .account-options-menu {
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
margin: 5% 7%; margin: 5% 7% 0%;
} }

Loading…
Cancel
Save