From 942957cd9bbaea79d313f4b64f069597eab9133d Mon Sep 17 00:00:00 2001 From: developomp Date: Wed, 29 Sep 2021 13:45:03 +0900 Subject: [PATCH] made navbar position fixed --- source/src/components/Navbar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/components/Navbar.tsx b/source/src/components/Navbar.tsx index f03268a..7a40b89 100644 --- a/source/src/components/Navbar.tsx +++ b/source/src/components/Navbar.tsx @@ -13,8 +13,9 @@ import Sidebar from "./Sidebar" import ThemeToggleButton from "./ThemeToggleButton" const StyledNav = styled.nav` - position: absolute; + position: fixed; width: 100%; + background-color: ${(props) => theming.theme(props.theme.currentTheme, { light: theming.light.backgroundColor0,