Skip to content

Commit 7b4535c

Browse files
committed
fix: fixed navbar menus size on mobiles
1 parent 62e0173 commit 7b4535c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Navbar.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function Navbar() {
66
const [isNavActive, setIsNavActive] = useState(false);
77

88
const handleNavButtonClick = () => {
9+
document.body.style.overflow = isNavActive ? "auto" : "hidden";
910
setIsNavActive(!isNavActive);
1011
};
1112

0 commit comments

Comments
 (0)