Remove extra nesting

This commit is contained in:
Anton Tananaev 2022-05-08 14:31:29 -07:00
parent e9f85e4559
commit 66eb9c1a68
3 changed files with 9 additions and 8 deletions

View File

@ -13,6 +13,6 @@
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root" style="height: 100%;"></div>
<div id="root" class="root"></div>
</body>
</html>

View File

@ -12,6 +12,12 @@ canvas {
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
.root {
display: flex;
flex-direction: column;
height: 100%;
}
.maplibregl-popup-content {
padding: 10px !important;
}

View File

@ -53,11 +53,6 @@ import AccumulatorsPage from './settings/AccumulatorsPage';
import CommandSendPage from './settings/CommandSendPage';
const useStyles = makeStyles(() => ({
root: {
display: 'flex',
flexDirection: 'column',
height: '100%',
},
page: {
flexGrow: 1,
overflow: 'auto',
@ -114,7 +109,7 @@ const App = () => {
<Route exact path="/reset-password" component={ResetPasswordPage} />
<Route>
{!initialized ? (<LinearProgress />) : (
<div className={classes.root}>
<>
<div className={classes.page}>
<Switch>
<Route exact path="/" component={MainPage} />
@ -158,7 +153,7 @@ const App = () => {
<BottomMenu />
</div>
)}
</div>
</>
)}
</Route>
</Switch>