mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(phone/context-menu): Fixed issue where backdrop was fixed height
This commit is contained in:
1 parent
924d17c2f6
commit
58868f3644
1 file changed
+2
-6
@@ -5,7 +5,6 @@ import { AppContentTypes } from '../interface/InterfaceUI';
|
|||||||
const useStyles = makeStyles(() => ({
|
const useStyles = makeStyles(() => ({
|
||||||
wrapper: {
|
wrapper: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
overflow: 'auto',
|
|
||||||
},
|
},
|
||||||
box: {
|
box: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -30,19 +29,16 @@ export const AppContent = ({
|
|||||||
...props
|
...props
|
||||||
}: AppContentTypes & BoxProps) => {
|
}: AppContentTypes & BoxProps) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper
|
||||||
className={classes.wrapper}
|
className={classes.wrapper}
|
||||||
square
|
square
|
||||||
style={backdrop ? { overflow: 'hidden' } : { overflow: 'auto' }}
|
style={backdrop ? { overflow: 'hidden' } : { overflow: 'auto' }}
|
||||||
>
|
>
|
||||||
|
<Backdrop className={classes.backdrop} open={backdrop || false} onClick={onClickBackdrop} />
|
||||||
<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
|
|
||||||
className={classes.backdrop}
|
|
||||||
open={backdrop || false}
|
|
||||||
onClick={onClickBackdrop}
|
|
||||||
/>
|
|
||||||
{children}
|
{children}
|
||||||
</Paper>
|
</Paper>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in new issue
Block a user