diff --git a/script.js b/script.js index fcd0f47..b715b8d 100644 --- a/script.js +++ b/script.js @@ -12,6 +12,8 @@ const navLinks = document.querySelectorAll(".main-nav-link"); navLinks.forEach((link) => { link.addEventListener("click", () => { + const isMobile = window.matchMedia("(max-width: 63em)").matches; + if (isMobile && link.closest(".nav-item-dropdown")) return; headerEl.classList.remove("nav-open"); }); }); diff --git a/services/drone/index.html b/services/drone/index.html index 5087957..88e5d14 100644 --- a/services/drone/index.html +++ b/services/drone/index.html @@ -41,7 +41,7 @@
  • About
  • Contact