From 3f118ef826e21d9ad431401b4e6c8d8c6d792faf Mon Sep 17 00:00:00 2001 From: Tudor Date: Fri, 9 Jan 2026 08:13:19 +0000 Subject: [PATCH] fixed map overlapping modals --- frontend/app.js | 2 ++ frontend/styles.css | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/app.js b/frontend/app.js index 21009ea..5aa5c21 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -225,6 +225,7 @@ function navigateTo(path) { function handleRoute() { let path = window.location.pathname; + console.log("handleRoute called, pathname:", path); // Normalize path - treat /index.html, empty, or just "/" as home if (path === "" || path === "/index.html" || path.endsWith("/index.html")) { @@ -232,6 +233,7 @@ function handleRoute() { } const view = routes[path] || "home"; + console.log("Resolved view:", view, "for path:", path); // Update page title for SEO document.title = pageTitles[view] || pageTitles.home; diff --git a/frontend/styles.css b/frontend/styles.css index a9c8c59..590173c 100644 --- a/frontend/styles.css +++ b/frontend/styles.css @@ -561,6 +561,8 @@ body { cursor: pointer; border: 1px solid var(--border-color); transition: var(--transition); + position: relative; + z-index: 1; } .school-map:hover { @@ -965,7 +967,7 @@ body { left: 0; width: 100%; height: 100%; - z-index: 200; + z-index: 1000; display: none; align-items: center; justify-content: center;