mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
tweak(phone/context-menu): Lock scroll when context menu is open
This commit is contained in:
1 parent
64c4e0ec16
commit
924d17c2f6
1 file changed
+5
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user