From e828e0f8015ce47feeb7adc79e724d1188b41897 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:37:07 +0200 Subject: [PATCH] Fix appbar zindex Appbar was clickable while a drawer was opened --- src/components/navbar/DefaultNavBar.tsx | 2 +- src/components/navbar/navigation/DesktopSideBar.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/navbar/DefaultNavBar.tsx b/src/components/navbar/DefaultNavBar.tsx index 76820088..f7560378 100644 --- a/src/components/navbar/DefaultNavBar.tsx +++ b/src/components/navbar/DefaultNavBar.tsx @@ -125,7 +125,7 @@ export function DefaultNavBar() { position: 'fixed', marginLeft: actualNavBarWidth, width: `calc(100% - ${actualNavBarWidth}px)`, - zIndex: theme.zIndex.drawer + 1, + zIndex: theme.zIndex.drawer, }} > diff --git a/src/components/navbar/navigation/DesktopSideBar.tsx b/src/components/navbar/navigation/DesktopSideBar.tsx index 64ad6b5c..30fe25dc 100644 --- a/src/components/navbar/navigation/DesktopSideBar.tsx +++ b/src/components/navbar/navigation/DesktopSideBar.tsx @@ -104,7 +104,15 @@ export const DesktopSideBar = ({ navBarItems }: { navBarItems: NavbarItem[] }) = ); return ( - + theme.zIndex.drawer - 1, + }, + }} + >