From 05aa1e7112aa927b3e5adc3cdab20d63dc2a5b69 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sat, 28 Feb 2026 20:57:44 +0000 Subject: [PATCH] authfooter --- client/src/Components/sidebar/Authfooter.tsx | 22 +++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/client/src/Components/sidebar/Authfooter.tsx b/client/src/Components/sidebar/Authfooter.tsx index 3edac75dd..49df78270 100644 --- a/client/src/Components/sidebar/Authfooter.tsx +++ b/client/src/Components/sidebar/Authfooter.tsx @@ -5,6 +5,7 @@ import IconButton from "@mui/material/IconButton"; import Menu from "@mui/material/Menu"; import MenuItem from "@mui/material/MenuItem"; import { useTheme } from "@mui/material"; +import { SPACING, LAYOUT } from "@/Utils/Theme/constants"; import { useSelector, useDispatch } from "react-redux"; import { useTranslation } from "react-i18next"; import { useState } from "react"; @@ -64,9 +65,9 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) => }); const menuItemSx = { - gap: theme.spacing(2), + gap: theme.spacing(LAYOUT.MD), borderRadius: theme.shape.borderRadius, - pl: theme.spacing(4), + pl: theme.spacing(LAYOUT.XS), "& svg": { stroke: theme.palette.text.secondary }, }; @@ -74,9 +75,9 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) => @@ -132,10 +133,15 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) => disableScrollLock anchorOrigin={{ vertical: "top", horizontal: "right" }} slotProps={{ - paper: { sx: { mt: theme.spacing(-4), ml: collapsed ? theme.spacing(2) : 0 } }, + paper: { + sx: { + mt: theme.spacing(-LAYOUT.XS), + ml: collapsed ? theme.spacing(SPACING.LG) : 0, + }, + }, }} MenuListProps={{ sx: { p: 2, "& li": { m: 0 } } }} - sx={{ ml: theme.spacing(4) }} + sx={{ ml: theme.spacing(LAYOUT.XS) }} > {collapsed && (