scroll app
This commit is contained in:
@@ -11,14 +11,18 @@ const Template = ({ children }) => {
|
|||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<GlobalStyles
|
<GlobalStyles
|
||||||
styles={{
|
styles={{
|
||||||
"&::-webkit-scrollbar": {
|
"*": {
|
||||||
|
scrollbarWidth: "thin",
|
||||||
|
scrollbarColor: `#155175 transparent`,
|
||||||
|
},
|
||||||
|
"*&::-webkit-scrollbar": {
|
||||||
width: "5px",
|
width: "5px",
|
||||||
},
|
},
|
||||||
"&::-webkit-scrollbar-track": {
|
"*&::-webkit-scrollbar-track": {
|
||||||
boxShadow: "inset 0 0 5px #fff",
|
boxShadow: "inset 0 0 5px #fff",
|
||||||
borderRadius: "5px",
|
borderRadius: "5px",
|
||||||
},
|
},
|
||||||
"&::-webkit-scrollbar-thumb": {
|
"*&::-webkit-scrollbar-thumb": {
|
||||||
background: "#155175",
|
background: "#155175",
|
||||||
borderRadius: "5px",
|
borderRadius: "5px",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ const HeaderWithSidebar = ({ children }) => {
|
|||||||
</Drawer>
|
</Drawer>
|
||||||
<Main open={open} sx={{ height: '100%', width: '100%', overflow: 'hidden' }}>
|
<Main open={open} sx={{ height: '100%', width: '100%', overflow: 'hidden' }}>
|
||||||
<DrawerHeader />
|
<DrawerHeader />
|
||||||
<Box sx={{ height: '100%', width: '100%', overflowY: 'scroll', overflowX: 'hidden', }}>
|
<Box sx={{ height: '100%', width: '100%', overflowY: 'auto', overflowX: 'hidden', }}>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
</Main>
|
</Main>
|
||||||
|
|||||||
Reference in New Issue
Block a user