From 5c0979997b02bc47694cdf61a582baa9769cd659 Mon Sep 17 00:00:00 2001 From: Emmyn5600 Date: Mon, 11 Mar 2024 20:46:34 +0200 Subject: [PATCH] fixing mobile sidemenu --- .../MobileSideMenu/MobileSideMenu.tsx | 64 +++++++++---------- .../components/SideMenu/SideMenu.styles.ts | 4 +- .../app/src/components/SideMenu/SideMenu.tsx | 2 +- 3 files changed, 34 insertions(+), 36 deletions(-) diff --git a/packages/app/src/components/SideMenu/MobileSideMenu/MobileSideMenu.tsx b/packages/app/src/components/SideMenu/MobileSideMenu/MobileSideMenu.tsx index b1d4cbb..8c07803 100644 --- a/packages/app/src/components/SideMenu/MobileSideMenu/MobileSideMenu.tsx +++ b/packages/app/src/components/SideMenu/MobileSideMenu/MobileSideMenu.tsx @@ -4,10 +4,8 @@ import { Drawer, Button, Flex, - Group, Navbar, Text, - rem, Box, useMantineTheme } from "@mantine/core" // Import Drawer from Mantine @@ -18,7 +16,6 @@ import UserAvatar from "../../UserAvatar" import useSideMenuStyles from "./MobileSideMenustyles" import FriendsSideMenuScreen from "../SideMenuScreens/FriendsSideMenuScreen" import menuImgSrc from "../../../../public/icons/menu.svg" -// import { isSmartphone } from "../../../helpers/functions" const MobileSideMenu = (): JSX.Element => { const { classes } = useSideMenuStyles() @@ -64,10 +61,8 @@ const MobileSideMenu = (): JSX.Element => {
- + { align={"center"} justify="space-between" > - + { online={true} /> - + {user.name} Online - - + + - + } + > + My Account + + + + -
diff --git a/packages/app/src/components/SideMenu/SideMenu.styles.ts b/packages/app/src/components/SideMenu/SideMenu.styles.ts index e28a73a..b48116b 100644 --- a/packages/app/src/components/SideMenu/SideMenu.styles.ts +++ b/packages/app/src/components/SideMenu/SideMenu.styles.ts @@ -20,8 +20,8 @@ const useSideMenuStyles = createStyles((theme) => ({ container: { boxSizing: "border-box", display: "none", - // overflowY: "auto", - // overflowX: "hidden", + overflowY: "auto", + overflowX: "hidden", position: "relative", paddingTop: " 0", paddingBottom: " 0", diff --git a/packages/app/src/components/SideMenu/SideMenu.tsx b/packages/app/src/components/SideMenu/SideMenu.tsx index f6a91f8..86d3869 100644 --- a/packages/app/src/components/SideMenu/SideMenu.tsx +++ b/packages/app/src/components/SideMenu/SideMenu.tsx @@ -57,7 +57,7 @@ const SideMenu = ({ closeMenu }: { closeMenu: () => void }): JSX.Element => { w={"100%"} p={"lg"} direction={"row"} - gap={5} + gap={20} align={"center"} justify="space-between" style={{