diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index cae8d77..ee76de0 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -46,9 +46,11 @@
const nav_button = document.getElementById("navi-toggle")
nav_button.addEventListener("change", event => {
if (event.target.checked) {
+ document.documentElement.style.overflow = "hidden";
document.body.style.overflow = "hidden";
}
if (!event.target.checked) {
+ document.documentElement.overflow = "initial";
document.body.style.overflow = "initial";
}
})