1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Implement mobile-friendly responsive layout with flex wrap

This commit is contained in:
sdtsui 2017-07-31 23:07:58 -07:00
parent 9cc461a6c2
commit a7fc512650
4 changed files with 16 additions and 4 deletions

View File

@ -73,7 +73,9 @@ App.prototype.render = function () {
h('.flex-column.full-height', {
style: {
// Windows was showing a vertical scroll bar:
overflow: 'hidden',
overflowX: 'hidden',
// TODO: check with dev who committed L75, see if this still happens, and whether auto is enough
// overflowY: 'auto',
position: 'relative',
alignItems: 'center',
},

View File

@ -31,7 +31,11 @@ function TxView () {
TxView.prototype.render = function () {
return h('div.tx-view.flex-column', {
style: {
width: '66.666%',
// width: '66.666%',
flexGrow: 2,
flexShrink: 0,
flexBasis: '230px', // .666*345
// flexBasis: '400px',
height: '82vh',
background: '#FFFFFF',
}

View File

@ -28,7 +28,10 @@ WalletView.prototype.render = function () {
return h('div.wallet-view.flex-column', {
style: {
width: '33.333%',
// width: '33.333%',
flexGrow: 1,
flexShrink: 0,
flexBasis: '230px', // .333*345
height: '82vh',
background: '#FAFAFA', // TODO: add to reusable colors
}

View File

@ -13,7 +13,7 @@ function MainContainer () {
MainContainer.prototype.render = function () {
return h('div.flex-row', {
return h('div', {
style: {
position: 'absolute',
marginTop: '6vh',
@ -22,6 +22,9 @@ MainContainer.prototype.render = function () {
boxShadow: '0 0 7px 0 rgba(0,0,0,0.08)',
fontFamily: 'DIN OT',
display: 'flex',
flexWrap: 'wrap',
alignItems: 'stretch',
overflowY: 'scroll',
}
}, [
h(WalletView, {