scroll app

This commit is contained in:
Amirhossein Mahmoodi
2024-07-13 15:56:02 +03:30
parent bd12d60b0d
commit 69cb21f21a
2 changed files with 8 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ const HeaderWithSidebar = ({ children }) => {
</Drawer>
<Main open={open} sx={{ height: '100%', width: '100%', overflow: 'hidden' }}>
<DrawerHeader />
<Box sx={{ height: '100%', width: '100%', overflowY: 'scroll', overflowX: 'hidden', }}>
<Box sx={{ height: '100%', width: '100%', overflowY: 'auto', overflowX: 'hidden', }}>
{children}
</Box>
</Main>