Fix scroll issue

This commit is contained in:
Pierre HUBERT 2021-05-14 13:45:36 +02:00
parent d01aa9272c
commit 41d568e493

View File

@ -115,8 +115,17 @@ export function MainRoute() {
return ( return (
<Router> <Router>
<div
style={{
height: "100%",
display: "flex",
flexDirection: "column",
}}
>
<Toolbar></Toolbar>
<AppBar <AppBar
position="absolute" position="fixed"
className={classes.appBar} className={classes.appBar}
color="primary" color="primary"
> >
@ -145,17 +154,16 @@ export function MainRoute() {
<div <div
style={{ style={{
display: "flex", display: "flex",
height: "100%", flex: "1",
flexDirection: "row", flexDirection: "row",
width: "100%", width: "100%",
marginTop: "64px",
}} }}
> >
<Paper style={{ width: "200px" }}> <Paper style={{ width: "200px" }}>
<Menu></Menu> <Menu></Menu>
</Paper> </Paper>
<div style={{ flex: "1", padding: "50px", height: "100%" }}> <div style={{ flex: "1", padding: "50px" }}>
<div <div
style={{ style={{
height: "100%", height: "100%",
@ -179,6 +187,7 @@ export function MainRoute() {
</div> </div>
</div> </div>
</div> </div>
</div>
</Router> </Router>
); );
} }