From 002802976ae6b06b06d0f8cd0f7e280b1df9b058 Mon Sep 17 00:00:00 2001 From: iFixKart Dev Date: Mon, 16 Nov 2026 22:16:25 +0530 Subject: [PATCH] fix(mobile): elevate mobile drawer backdrop and sidebar z-index hierarchy --- app/(admin)/layout.tsx | 4 ++-- components/layouts/Sidebar.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(admin)/layout.tsx b/app/(admin)/layout.tsx index 2a27890..7121bd9 100644 --- a/app/(admin)/layout.tsx +++ b/app/(admin)/layout.tsx @@ -58,13 +58,13 @@ export default function AdminLayout({ {mobileOpen && (
setMobileOpen(false)} /> )} {mobileOpen && ( -
+
setMobileOpen(false)} />
)} diff --git a/components/layouts/Sidebar.tsx b/components/layouts/Sidebar.tsx index f0ca2cf..fa2cdcd 100644 --- a/components/layouts/Sidebar.tsx +++ b/components/layouts/Sidebar.tsx @@ -306,7 +306,7 @@ export function Sidebar({ collapsed, onToggle, overlay = false, variant = 'verti className={cn( 'theme-sidebar flex flex-col bg-card border-r border-border transition-[width] duration-200 ease-out shrink-0', detached ? 'h-full rounded-xl border shadow-md' : 'h-screen', - overlay && 'fixed left-0 top-0 z-20', + overlay && 'fixed left-0 top-0 z-50', collapsed ? 'w-[70px] min-w-[70px] max-w-[70px]' : overlay ? 'w-[min(260px,85vw)] max-w-[85vw]' : 'w-[260px] min-w-[260px] max-w-[260px]' )} >