fix: added dividers in between sections

This commit is contained in:
Daniel Cojocea committed 2024-08-16 14:17:11 -04:00
1 parent e33f8f1f27
commit 7f3c446fcf
3 files changed
+24 -10

No files matched your search

+3 -3
View File
@@ -40,12 +40,12 @@ aside .selected-path > * {
aside .selected-path span.MuiTypography-root { aside .selected-path span.MuiTypography-root {
font-weight: 600; font-weight: 600;
} }
aside .MuiStack-root:last-child {
margin-top: auto;
}
aside .MuiCollapse-wrapperInner .MuiList-root > .MuiListItemButton-root { aside .MuiCollapse-wrapperInner .MuiList-root > .MuiListItemButton-root {
position: relative; position: relative;
} }
aside .MuiDivider-root {
border-color: var(--env-var-color-6);
}
aside aside
.MuiCollapse-wrapperInner .MuiCollapse-wrapperInner
.MuiList-root .MuiList-root
+16 -6
View File
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
import { import {
Box, Box,
Collapse, Collapse,
Divider,
IconButton, IconButton,
List, List,
ListItemButton, ListItemButton,
@@ -104,16 +105,21 @@ function Sidebar() {
}, []); }, []);
return ( return (
<Stack component="aside" gap={theme.gap.large}> <Stack component="aside" gap={theme.gap.medium}>
<Box pt={theme.gap.large} pl={theme.gap.ml} pb={theme.gap.xs}> <Box pt={theme.gap.large} pl={theme.gap.lgplus} pb={theme.gap.xs}>
<BWULogo alt="BlueWave Uptime Logo" /> <BWULogo alt="BlueWave Uptime Logo" />
</Box> </Box>
{/* menu */} {/* menu */}
<List <List
component="nav" component="nav"
aria-labelledby="nested-menu-subheader" aria-labelledby="nested-menu-subheader"
disablePadding
subheader={ subheader={
<ListSubheader component="div" id="nested-menu-subheader"> <ListSubheader
component="div"
id="nested-menu-subheader"
sx={{ pt: theme.gap.small }}
>
Menu Menu
</ListSubheader> </ListSubheader>
} }
@@ -195,12 +201,17 @@ function Sidebar() {
) )
)} )}
</List> </List>
<Divider sx={{ my: theme.gap.small }} />
{/* other */} {/* other */}
<List <List
component="nav" component="nav"
aria-labelledby="nested-other-subheader" aria-labelledby="nested-other-subheader"
subheader={ subheader={
<ListSubheader component="div" id="nested-other-subheader"> <ListSubheader
component="div"
id="nested-other-subheader"
sx={{ pt: theme.gap.small }}
>
Other Other
</ListSubheader> </ListSubheader>
} }
@@ -230,13 +241,12 @@ function Sidebar() {
</ListItemButton> </ListItemButton>
))} ))}
</List> </List>
<Divider sx={{ mt: "auto" }} />
<Stack <Stack
direction="row" direction="row"
alignItems="center" alignItems="center"
py={theme.gap.small} py={theme.gap.small}
px={theme.gap.medium} px={theme.gap.medium}
pr={0}
gap={theme.gap.xs} gap={theme.gap.xs}
borderRadius={`${theme.shape.borderRadius}px`} borderRadius={`${theme.shape.borderRadius}px`}
> >
+5 -1
View File
@@ -25,7 +25,11 @@
border-radius: var(--env-var-radius-1); border-radius: var(--env-var-radius-1);
background-color: var(--env-var-color-8); background-color: var(--env-var-color-8);
padding: var(--env-var-spacing-1) var(--env-var-spacing-1-plus); padding: var(--env-var-spacing-1) 0;
}
.home-layout aside > *:not(:first-child) {
padding-left: var(--env-var-spacing-1-plus);
padding-right: var(--env-var-spacing-1-plus);
} }
.home-layout > div { .home-layout > div {