Fix: Sidemenu UI Overflow

This commit is contained in:
Aryaman Kumar Sharma committed 2025-02-14 00:17:32 +05:30
1 parent 0c4c75a612
commit b704651b87
1 file changed
+18 -1
+18 -1
View File
@@ -183,6 +183,7 @@ function Sidebar() {
This is the top lever for styles
*/
sx={{
position: 'relative',
border: 1,
borderColor: theme.palette.primary.lowContrast,
borderRadius: theme.shape.borderRadius,
@@ -302,6 +303,20 @@ function Sidebar() {
</Typography>
</Stack>
</Stack>
<Box
sx={{
flexGrow: 1,
overflow: 'auto',
overflowX: 'hidden',
'&::-webkit-scrollbar': {
width: theme.spacing(2),
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: theme.palette.primary.lowContrast,
borderRadius: theme.spacing(4),
},
}}
>
<List
component="nav"
aria-labelledby="nested-menu-subheader"
@@ -315,6 +330,7 @@ function Sidebar() {
/* TODO px should be centralized in container */
px: collapsed ? theme.spacing(2) : theme.spacing(4),
backgroundColor: "transparent",
position: "static",
}}
>
Menu
@@ -566,7 +582,8 @@ function Sidebar() {
);
})}
</List>
<Divider sx={{ mt: "auto" }} />
</Box>
<Divider sx={{ mt: "auto", borderColor: theme.palette.primary.lowContrast }} />
<Stack
direction="row"