mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +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(() => ({
|
||||
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>
|
||||
|
||||
Reference in new issue
Block a user