From f69c4a68ba0b84cae67ec86996d5271f33bd64b3 Mon Sep 17 00:00:00 2001 From: poyrazavsever Date: Tue, 9 Jun 2026 15:32:31 +0300 Subject: [PATCH] refactor: implement slide-in transition for mobile sidebars and update auth layout visibility responsiveness --- components/auth/auth-page-shell.tsx | 2 +- components/layout/dashboard-shell.tsx | 37 +++++++++++++------------ components/layout/portal-shell.tsx | 39 ++++++++++++++------------- 3 files changed, 42 insertions(+), 36 deletions(-) diff --git a/components/auth/auth-page-shell.tsx b/components/auth/auth-page-shell.tsx index 060b500..e4c30d0 100644 --- a/components/auth/auth-page-shell.tsx +++ b/components/auth/auth-page-shell.tsx @@ -161,7 +161,7 @@ export function AuthPageShell({ /> -
+
{title} diff --git a/components/layout/dashboard-shell.tsx b/components/layout/dashboard-shell.tsx index 1e342b6..7d4ba01 100644 --- a/components/layout/dashboard-shell.tsx +++ b/components/layout/dashboard-shell.tsx @@ -52,23 +52,26 @@ export function DashboardShell({ children, user }: DashboardShellProps) { - {isMobileSidebarOpen ? ( -
-
- ) : null} + {/* Mobile Sidebar Overlay */} + {isMobileSidebarOpen && ( +
setIsMobileSidebarOpen(false)} + /> + )} + + {/* Mobile Sidebar Drawer */} +
diff --git a/components/layout/portal-shell.tsx b/components/layout/portal-shell.tsx index 5c97478..84f9ca7 100644 --- a/components/layout/portal-shell.tsx +++ b/components/layout/portal-shell.tsx @@ -53,24 +53,27 @@ export function PortalShell({ children, user, progress }: PortalShellProps) { - {isMobileSidebarOpen ? ( -
-
- ) : null} + {/* Mobile Sidebar Overlay */} + {isMobileSidebarOpen && ( +
setIsMobileSidebarOpen(false)} + /> + )} + + {/* Mobile Sidebar Drawer */} +