mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Fiz(AppContent): Scroll fix
This commit is contained in:
1 parent
0300dc53d8
commit
c78eba04c9
3 files changed
+109
-53
No files matched your search
@@ -1,10 +1,16 @@
|
||||
import React from "react";
|
||||
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
|
||||
import { Box, makeStyles, Backdrop, Paper, Container } from "@material-ui/core";
|
||||
import { red } from "@material-ui/core/colors";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
wrapper: {
|
||||
height: "80vh",
|
||||
overflow: "auto",
|
||||
},
|
||||
box: {
|
||||
width: "100%",
|
||||
position: "relative",
|
||||
overflow: "auto",
|
||||
},
|
||||
backdrop: {
|
||||
position: "absolute",
|
||||
@@ -12,7 +18,7 @@ const useStyles = makeStyles((theme) => ({
|
||||
},
|
||||
paper: {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
height: "80vh",
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -25,15 +31,17 @@ export const AppContent = ({
|
||||
}) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Box flexGrow={1} className={classes.box} {...props}>
|
||||
<Paper square px={2} pt={1} elevation={0} className={classes.paper}>
|
||||
<Backdrop
|
||||
className={classes.backdrop}
|
||||
open={backdrop || false}
|
||||
onClick={onClickBackdrop}
|
||||
></Backdrop>
|
||||
{children}
|
||||
</Paper>
|
||||
</Box>
|
||||
<Paper className={classes.wrapper}>
|
||||
<Box flexGrow={1} className={classes.box} {...props}>
|
||||
<Paper square px={2} pt={1} elevation={0} className={classes.paper}>
|
||||
<Backdrop
|
||||
className={classes.backdrop}
|
||||
open={backdrop || false}
|
||||
onClick={onClickBackdrop}
|
||||
></Backdrop>
|
||||
{children}
|
||||
</Paper>
|
||||
</Box>
|
||||
</Paper>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user