Skip to content

Commit

Permalink
fix(navbar): fixed the height of navbar menu (#1805)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nozomemein authored Jun 15, 2024
1 parent 75d1223 commit be932c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/navbar/src/navbar-menu-transitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
},
},
Expand Down

0 comments on commit be932c1

Please sign in to comment.