fix(phone/context-menu): Fixed issue where backdrop was fixed height

This commit is contained in:
Taso authored and Taso committed 2021-03-04 11:33:25 -05:00
1 parent 924d17c2f6
commit 58868f3644
1 file changed
+2 -6
+2 -6
View File
@@ -5,7 +5,6 @@ import { AppContentTypes } from '../interface/InterfaceUI';
const useStyles = makeStyles(() => ({
wrapper: {
flex: 1,
overflow: 'auto',
},
box: {
width: '100%',
@@ -30,19 +29,16 @@ export const AppContent = ({
...props
}: AppContentTypes & BoxProps) => {
const classes = useStyles();
return (
<Paper
className={classes.wrapper}
square
style={backdrop ? { overflow: 'hidden' } : { overflow: 'auto' }}
>
<Backdrop className={classes.backdrop} open={backdrop || false} onClick={onClickBackdrop} />
<Box flexGrow={1} className={classes.box} {...props}>
<Paper square elevation={0} className={classes.paper}>
<Backdrop
className={classes.backdrop}
open={backdrop || false}
onClick={onClickBackdrop}
/>
{children}
</Paper>
</Box>