Fix sizing
This commit is contained in:
21
src/App.css
21
src/App.css
@@ -2,10 +2,29 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px;
|
padding: 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-image: url('./assets/images/background.jpg');
|
background-image: url('./assets/images/background.jpg');
|
||||||
background-size: cover;
|
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;
|
||||||
|
}
|
||||||
12
src/App.js
12
src/App.js
@@ -680,11 +680,13 @@ class App extends Component {
|
|||||||
{upgradeDisplay}
|
{upgradeDisplay}
|
||||||
{downloadDisplay}
|
{downloadDisplay}
|
||||||
{configDisplay}
|
{configDisplay}
|
||||||
<Box dxStyle={{height: '28px'}}>
|
<div styleName='Container'>
|
||||||
|
<div styleName='Header'>
|
||||||
|
<Box>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Text col={0}
|
<Text col={0}
|
||||||
row={0}
|
|
||||||
colSpan={'remain'}
|
colSpan={'remain'}
|
||||||
|
row={0}
|
||||||
rowSpan={'remain'}
|
rowSpan={'remain'}
|
||||||
text={'Repertory UI v' + this.props.version}
|
text={'Repertory UI v' + this.props.version}
|
||||||
textAlign={'center'}
|
textAlign={'center'}
|
||||||
@@ -698,10 +700,14 @@ class App extends Component {
|
|||||||
rowSpan={'remain'}/>
|
rowSpan={'remain'}/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
<Box dxStyle={{padding: '8px', marginTop: '10px', height: '238px'}}>
|
</div>
|
||||||
|
<div styleName='Content'>
|
||||||
|
<Box dxStyle={{padding: '8px'}}>
|
||||||
{mainContent}
|
{mainContent}
|
||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user