fix(navbar): fixed the height of navbar menu (#1805)

* fix(navbar): fixed the height of navbar menu

* fix(navbar): refactored the css of navbar

* fix(navbar): fix redundant expression

* fix(navbar): fixed unnecessary changes

* fix(navbar): adjust viewport
This commit is contained in:
Nozomi Hijikata 2024-06-15 09:20:15 +09:00 committed by GitHub
parent 75d1223178
commit be932c13fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import {Variants} from "framer-motion";
export const menuVariants: Variants = {
enter: {
height: "calc(100vh - var(--navbar-height) - 1px)",
height: "calc(100vh - var(--navbar-height))",
transition: {
duration: 0.3,
easings: "easeOut",

View File

@ -233,7 +233,7 @@ const navbar = tv({
},
disableAnimation: {
true: {
menu: ["hidden", "h-[calc(100dvh_-_var(--navbar-height)_-_1px)]", "data-[open=true]:flex"],
menu: ["hidden", "h-[calc(100dvh_-_var(--navbar-height))]", "data-[open=true]:flex"],
},
},
},