From 81a4113ec35f12454cdcf094d2c6b723b26287a7 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Wed, 18 Jun 2025 01:12:30 -0500 Subject: [PATCH] add our mobile checks --- src/app/pages/client/sidebar/SpaceTabs.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/pages/client/sidebar/SpaceTabs.tsx b/src/app/pages/client/sidebar/SpaceTabs.tsx index 32c65bcd..71a87f9f 100644 --- a/src/app/pages/client/sidebar/SpaceTabs.tsx +++ b/src/app/pages/client/sidebar/SpaceTabs.tsx @@ -395,6 +395,11 @@ function SpaceTab({ const mx = useMatrixClient(); const useAuthentication = useMediaAuthentication(); const targetRef = useRef(null); + const screenSize = useScreenSizeContext(); + const isMobile = screenSize === ScreenSize.Mobile; + const [isMobileSheetOpen, setMobileSheetOpen] = useState(false); + + const [menuAnchor, setMenuAnchor] = useState(); const spaceDraggable: SidebarDraggable = useMemo( () =>