This commit is contained in:
Raitraut
2026-03-13 13:17:29 +01:00
parent 88e910e0de
commit c2726771d2
3 changed files with 870 additions and 36 deletions

View File

@@ -95,4 +95,11 @@ window.addEventListener('scroll', () => {
} else {
header.style.boxShadow = 'none';
}
}, { passive: true });
// ===== Close mobile nav on resize past breakpoint =====
window.addEventListener('resize', () => {
if (window.innerWidth > 960 && mobileNav.classList.contains('active')) {
closeMobileNav();
}
});