tweak(phone/context-menu): Lock scroll when context menu is open

This commit is contained in:
Taso authored and Taso committed 2021-03-04 11:33:25 -05:00
1 parent 64c4e0ec16
commit 924d17c2f6
1 file changed
+5 -2
+5 -2
View File
@@ -11,7 +11,6 @@ const useStyles = makeStyles(() => ({
width: '100%', width: '100%',
height: '100%', // allow application to fill entireity of space height: '100%', // allow application to fill entireity of space
position: 'relative', position: 'relative',
overflow: 'auto',
}, },
backdrop: { backdrop: {
position: 'absolute', position: 'absolute',
@@ -32,7 +31,11 @@ export const AppContent = ({
}: AppContentTypes & BoxProps) => { }: AppContentTypes & BoxProps) => {
const classes = useStyles(); const classes = useStyles();
return ( return (
<Paper className={classes.wrapper} square> <Paper
className={classes.wrapper}
square
style={backdrop ? { overflow: 'hidden' } : { overflow: 'auto' }}
>
<Box flexGrow={1} className={classes.box} {...props}> <Box flexGrow={1} className={classes.box} {...props}>
<Paper square elevation={0} className={classes.paper}> <Paper square elevation={0} className={classes.paper}>
<Backdrop <Backdrop