From aa3e62d0ff2eb9b39b510c2bca6a36eabb842fb9 Mon Sep 17 00:00:00 2001 From: keyhan Date: Fri, 12 Jun 2026 12:14:40 +0330 Subject: [PATCH] Make the mobile dashboard sidebar scrollable. The mobile drawer rendered the nav at full height below a fixed header, so lower items (and the admin section) overflowed off-screen with no way to scroll. Lay the drawer out as a flex column with a fixed header, a scrollable nav area (min-h-0 + overflow-y-auto) and a pinned user footer. Co-Authored-By: Claude Opus 4.8 --- frontend/src/app/[lang]/dashboard/layout.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/[lang]/dashboard/layout.tsx b/frontend/src/app/[lang]/dashboard/layout.tsx index ac67e45..57209e7 100644 --- a/frontend/src/app/[lang]/dashboard/layout.tsx +++ b/frontend/src/app/[lang]/dashboard/layout.tsx @@ -156,7 +156,7 @@ export default function DashboardLayout({ children }: { children: React.ReactNod const SidebarContent = () => (
-
+
{userNavItems.map((item) => ( ))} @@ -202,7 +202,7 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
{/* Sidebar footer */} -
+

{user?.firstName} {user?.lastName} @@ -226,11 +226,11 @@ export default function DashboardLayout({ children }: { children: React.ReactNod {/* Mobile sidebar */}

{/* Header */}