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

@@ -11,14 +11,18 @@ const Template = ({ children }) => {
<ThemeProvider theme={theme}>
<GlobalStyles
styles={{
"&::-webkit-scrollbar": {
"*": {
scrollbarWidth: "thin",
scrollbarColor: `#155175 transparent`,
},
"*&::-webkit-scrollbar": {
width: "5px",
},
"&::-webkit-scrollbar-track": {
"*&::-webkit-scrollbar-track": {
boxShadow: "inset 0 0 5px #fff",
borderRadius: "5px",
},
"&::-webkit-scrollbar-thumb": {
"*&::-webkit-scrollbar-thumb": {
background: "#155175",
borderRadius: "5px",
},

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>