From 3c948ccdde780aa82122b8bdaecc0b15949e4826 Mon Sep 17 00:00:00 2001 From: Atreya Choudhury Date: Sun, 11 Aug 2024 09:06:30 +0200 Subject: [PATCH] stacking fix --- components/Header.tsx | 2 +- components/MobileNav.tsx | 7 ++++--- tailwind.config.js | 5 +++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/Header.tsx b/components/Header.tsx index 5ed4e699d..e4f27fc96 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -9,7 +9,7 @@ import SearchButton from './SearchButton' const Header = () => { let headerClass = 'flex items-center w-full bg-white dark:bg-gray-950 justify-between py-10' if (siteMetadata.stickyNav) { - headerClass += ' sticky top-0' + headerClass += ' sticky top-0 z-50' } return ( diff --git a/components/MobileNav.tsx b/components/MobileNav.tsx index 2dbabb6d3..a7770a504 100644 --- a/components/MobileNav.tsx +++ b/components/MobileNav.tsx @@ -52,8 +52,9 @@ const MobileNav = () => { leave="ease-in duration-200" leaveFrom="opacity-100" leaveTo="opacity-0" + unmount={false} > -
+
{ leaveTo="translate-x-full opacity-0" unmount={false} > - +