Skip to content

Commit

Permalink
Fix side menu overflows and cuts on smaller screens (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot authored May 10, 2024
1 parent a88f188 commit 9a086e7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions epictrack-web/src/components/layout/SideNav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,19 @@ export const DrawerBox = ({ open = true }: { open?: boolean }) => {
<Box
data-testid={`sidenav`}
sx={{
overflow: "hidden",
overflowY: "auto",
overflowX: "hidden",
height: "100%",
background: Palette.primary.main,
padding: "16px 0px 57px 0px",
}}
>
<List sx={{ paddingTop: toggleDrawerMarginTop }}>
<List
sx={{
paddingTop: toggleDrawerMarginTop,
backgroundColor: "inherit",
}}
>
<>
{Object.keys(groupedRoutes).map((groupKey) => {
return (
Expand Down Expand Up @@ -252,7 +258,7 @@ const SideNav = () => {
<Drawer
sx={{
width: "15%",
background: Palette.primary.main,
backgroundColor: Palette.primary.main,
}}
onClose={handleToggleDrawer}
anchor={"left"}
Expand Down

0 comments on commit 9a086e7

Please sign in to comment.