Fix sizing

This commit is contained in:
Scott E. Graves
2018-10-03 21:35:01 -05:00
parent 43fa638c06
commit b5171f2b1b
2 changed files with 46 additions and 21 deletions

View File

@@ -2,10 +2,29 @@
display: flex;
flex-direction: column;
margin: 0;
padding: 10px;
padding: 8px;
box-sizing: border-box;
height: 100vh;
width: 100vw;
background-image: url('./assets/images/background.jpg');
background-size: cover;
}
.Container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.Header {
height: 28px;
margin-bottom: 8px;
box-sizing: border-box;
}
.Content {
flex: 1;
box-sizing: border-box;
}

View File

@@ -680,11 +680,13 @@ class App extends Component {
{upgradeDisplay}
{downloadDisplay}
{configDisplay}
<Box dxStyle={{height: '28px'}}>
<div styleName='Container'>
<div styleName='Header'>
<Box>
<Grid>
<Text col={0}
row={0}
colSpan={'remain'}
row={0}
rowSpan={'remain'}
text={'Repertory UI v' + this.props.version}
textAlign={'center'}
@@ -698,10 +700,14 @@ class App extends Component {
rowSpan={'remain'}/>
</Grid>
</Box>
<Box dxStyle={{padding: '8px', marginTop: '10px', height: '238px'}}>
</div>
<div styleName='Content'>
<Box dxStyle={{padding: '8px'}}>
{mainContent}
</Box>
</div>
</div>
</div>
);
}
}