From 9c76a68f64d93ac03d91b4c0db46475aa6798aab Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Jan 2026 15:15:36 +0000 Subject: [PATCH] fix: Move sidebar outside z-30 container to fix navigation links The sidebar links stopped working after navigating to Dashboard because the sidebar was inside a z-30 stacking context container. Dashboard's fixed inset-0 elements were interfering with click events due to the nested stacking context hierarchy. Fix: Move both desktop and mobile sidebar outside the z-30 container so they're at the root stacking context level (like the header at z-50). This ensures the sidebar's z-[45] is compared directly against other root-level elements, making links always clickable. https://claude.ai/code/session_01DQc3H42fPsRJbzRminACDF --- src/components/AppLayout.tsx | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 52c6e9056..9e9d4be56 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -233,26 +233,26 @@ export default function AppLayout({ children }: AppLayoutProps) { - {/* Layout with Sidebar */} -
- {/* Sidebar Desktop fixo - pointer-events-auto garante que cliques nos links funcionem */} -
- setSidebarOpen(false)} - collapsed={sidebarCollapsed} - /> -
+ {/* Sidebar Desktop fixo - FORA do container z-30 para garantir stacking context correto */} +
+ setSidebarOpen(false)} + collapsed={sidebarCollapsed} + /> +
- {/* Sidebar Mobile overlay */} -
- setSidebarOpen(false)} - collapsed={false} - /> -
+ {/* Sidebar Mobile overlay - também fora do z-30 */} +
+ setSidebarOpen(false)} + collapsed={false} + /> +
+ {/* Layout with Main Content */} +