From 67de1bb5b0067a0e4c3d17a36699ea4feffcc7b6 Mon Sep 17 00:00:00 2001 From: developomp Date: Wed, 29 Sep 2021 22:37:19 +0900 Subject: [PATCH] fixed other components drawing over navbar and added some helpful comment to generator :) --- source/generate.ts | 4 ++++ source/src/components/Navbar.tsx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/source/generate.ts b/source/generate.ts index 062b2c8..ff263eb 100644 --- a/source/generate.ts +++ b/source/generate.ts @@ -434,6 +434,10 @@ function recursiveParse( } } +/** + * Actual logic starts here + */ + // Delete existing files try { diff --git a/source/src/components/Navbar.tsx b/source/src/components/Navbar.tsx index 7a40b89..0d526d7 100644 --- a/source/src/components/Navbar.tsx +++ b/source/src/components/Navbar.tsx @@ -13,6 +13,8 @@ import Sidebar from "./Sidebar" import ThemeToggleButton from "./ThemeToggleButton" const StyledNav = styled.nav` + /* set z index to arbitrarily high value to prevent other components from drawing over the navbar */ + z-index: 9999; position: fixed; width: 100%;