feat/style: close panel on map click and optimize tablet layout

This commit is contained in:
2569718930@qq.com
2026-03-03 22:29:32 +08:00
parent 853992f15b
commit 27385e4cfe
2 changed files with 15 additions and 1 deletions
+5
View File
@@ -37,6 +37,11 @@ function initMap() {
subdomains: "abcd",
maxZoom: 19,
}).addTo(map);
// Close panel and clear selection when clicking on empty map space
map.on("click", () => {
closePanel();
});
}
// ──────────────────────────────────────────────────────────
+10 -1
View File
@@ -936,7 +936,16 @@ body {
}
/* ── Responsive ── */
@media (max-width: 900px) {
@media (max-width: 1100px) {
:root {
--panel-width: 460px;
}
.hero-value {
font-size: 52px;
}
}
@media (max-width: 768px) {
.city-list {
display: none;
}