Adjusted padding measurements

This commit is contained in:
Daniel Cojocea committed 2024-08-22 15:00:44 -04:00
1 parent d5daa14a98
commit a5a2674f1f
3 files changed
+29 -26

No files matched your search

+13 -6
View File
@@ -76,14 +76,21 @@ aside .MuiCollapse-wrapperInner .MuiList-root > .MuiListItemButton-root::after {
content: ""; content: "";
position: absolute; position: absolute;
left: -8px; left: -8px;
top: 50%; top: 45%;
transform: translateY(-50%);
height: 3px; height: 3px;
width: 3px; width: 3px;
border-radius: 50%; border-radius: 50%;
background-color: #d6d9dd; background-color: #d6d9dd;
} }
aside
.MuiCollapse-wrapperInner
.MuiList-root
> .selected-path.MuiListItemButton-root::after {
background-color: var(--env-var-color-2);
transform: scale(1.2);
}
aside { aside {
transition: flex 300ms ease-out; transition: flex 300ms ease-out;
} }
@@ -104,20 +111,20 @@ aside {
padding: 5px 8px; padding: 5px 8px;
border-radius: var(--env-var-radius-1); border-radius: var(--env-var-radius-1);
} }
.sidebar-popup li.MuiButtonBase-root:hover{ .sidebar-popup li.MuiButtonBase-root:hover {
background-color: var(--env-var-color-13); background-color: var(--env-var-color-13);
} }
.sidebar-popup li.MuiButtonBase-root:has(.MuiBox-root):hover{ .sidebar-popup li.MuiButtonBase-root:has(.MuiBox-root):hover {
background-color: white; background-color: white;
} }
.sidebar-popup li.MuiButtonBase-root:has(.MuiBox-root){ .sidebar-popup li.MuiButtonBase-root:has(.MuiBox-root) {
padding-bottom: 0; padding-bottom: 0;
} }
.sidebar-popup .MuiModal-root p.MuiTypography-root { .sidebar-popup .MuiModal-root p.MuiTypography-root {
font-size: var(--env-var-font-size-medium); font-size: var(--env-var-font-size-medium);
color: var(--env-var-color-2); color: var(--env-var-color-2);
} }
.sidebar-popup svg{ .sidebar-popup svg {
width: 16px; width: 16px;
height: 16px; height: 16px;
opacity: 0.9; opacity: 0.9;
+15 -20
View File
@@ -128,11 +128,7 @@ function Sidebar() {
gap={theme.gap.medium} gap={theme.gap.medium}
sx={{ flex: collapsed ? 0 : 1 }} sx={{ flex: collapsed ? 0 : 1 }}
> >
<Stack <Stack py={theme.gap.large} pl={theme.gap.mlplus}>
alignItems={collapsed ? "center" : "flex-start"}
py={theme.gap.large}
pl={collapsed ? 0 : theme.gap.lgplus}
>
{collapsed ? ( {collapsed ? (
<BWULogoAbbreviated alt="BlueWave Uptime Logo" /> <BWULogoAbbreviated alt="BlueWave Uptime Logo" />
) : ( ) : (
@@ -175,14 +171,14 @@ function Sidebar() {
id="nested-menu-subheader" id="nested-menu-subheader"
sx={{ sx={{
pt: theme.gap.small, pt: theme.gap.small,
px: collapsed ? theme.gap.xs : theme.gap.ml, px: collapsed ? 0 : theme.gap.small,
textAlign: collapsed ? "center" : "left", textAlign: collapsed ? "center" : "left",
}} }}
> >
Menu Menu
</ListSubheader> </ListSubheader>
} }
sx={{ px: collapsed ? theme.gap.xs : theme.gap.ml }} sx={{ px: theme.gap.medium }}
> >
{menu.map((item) => {menu.map((item) =>
item.path ? ( item.path ? (
@@ -210,9 +206,9 @@ function Sidebar() {
} }
onClick={() => navigate(`/${item.path}`)} onClick={() => navigate(`/${item.path}`)}
sx={{ sx={{
gap: theme.gap.medium, gap: theme.gap.small,
borderRadius: `${theme.shape.borderRadius}px`, borderRadius: `${theme.shape.borderRadius}px`,
justifyContent: collapsed ? "center" : "flex-start", px: theme.gap.small,
}} }}
> >
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon> <ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
@@ -247,9 +243,9 @@ function Sidebar() {
onClick={(event) => openPopup(event, item.name)} onClick={(event) => openPopup(event, item.name)}
sx={{ sx={{
position: "relative", position: "relative",
gap: theme.gap.medium, gap: theme.gap.small,
borderRadius: `${theme.shape.borderRadius}px`, borderRadius: `${theme.shape.borderRadius}px`,
justifyContent: collapsed ? "center" : "flex-start", px: theme.gap.small,
}} }}
> >
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon> <ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
@@ -311,9 +307,9 @@ function Sidebar() {
})) }))
} }
sx={{ sx={{
gap: theme.gap.medium, gap: theme.gap.small,
borderRadius: `${theme.shape.borderRadius}px`, borderRadius: `${theme.shape.borderRadius}px`,
justifyContent: collapsed ? "center" : "flex-start", px: theme.gap.small,
}} }}
> >
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon> <ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
@@ -324,7 +320,7 @@ function Sidebar() {
<List <List
component="div" component="div"
disablePadding disablePadding
sx={{ pl: theme.gap.lgplus }} sx={{ pl: theme.gap.large }}
> >
{item.nested.map((child) => { {item.nested.map((child) => {
if ( if (
@@ -374,14 +370,14 @@ function Sidebar() {
id="nested-other-subheader" id="nested-other-subheader"
sx={{ sx={{
pt: theme.gap.small, pt: theme.gap.small,
px: collapsed ? theme.gap.xs : theme.gap.ml, px: collapsed ? 0 : theme.gap.small,
textAlign: collapsed ? "center" : "left", textAlign: collapsed ? "center" : "left",
}} }}
> >
Other Other
</ListSubheader> </ListSubheader>
} }
sx={{ px: collapsed ? theme.gap.xs : theme.gap.ml }} sx={{ px: theme.gap.medium }}
> >
{other.map((item) => ( {other.map((item) => (
<Tooltip <Tooltip
@@ -416,9 +412,9 @@ function Sidebar() {
: navigate(`/${item.path}`) : navigate(`/${item.path}`)
} }
sx={{ sx={{
gap: theme.gap.medium, gap: theme.gap.small,
borderRadius: `${theme.shape.borderRadius}px`, borderRadius: `${theme.shape.borderRadius}px`,
justifyContent: collapsed ? "center" : "flex-start", px: theme.gap.small,
}} }}
> >
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon> <ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
@@ -432,10 +428,9 @@ function Sidebar() {
<Stack <Stack
direction="row" direction="row"
height="50px" height="50px"
justifyContent={collapsed ? "center" : "flex-start"}
alignItems="center" alignItems="center"
py={theme.gap.small} py={theme.gap.small}
px={theme.gap.medium} px={theme.gap.ml}
gap={theme.gap.xs} gap={theme.gap.xs}
borderRadius={`${theme.shape.borderRadius}px`} borderRadius={`${theme.shape.borderRadius}px`}
> >
+1
View File
@@ -437,6 +437,7 @@ const Monitors = () => {
<ServerStatus title="Paused" value={0} state="pause" /> <ServerStatus title="Paused" value={0} state="pause" />
</Stack> </Stack>
<Box <Box
flex={1}
p={theme.gap.lgplus} p={theme.gap.lgplus}
border={1} border={1}
borderColor={theme.palette.otherColors.graishWhite} borderColor={theme.palette.otherColors.graishWhite}