feat/style: close panel on map click and optimize tablet layout
This commit is contained in:
@@ -37,6 +37,11 @@ function initMap() {
|
|||||||
subdomains: "abcd",
|
subdomains: "abcd",
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
// Close panel and clear selection when clicking on empty map space
|
||||||
|
map.on("click", () => {
|
||||||
|
closePanel();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// ──────────────────────────────────────────────────────────
|
// ──────────────────────────────────────────────────────────
|
||||||
|
|||||||
+10
-1
@@ -936,7 +936,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ── Responsive ── */
|
/* ── Responsive ── */
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 1100px) {
|
||||||
|
:root {
|
||||||
|
--panel-width: 460px;
|
||||||
|
}
|
||||||
|
.hero-value {
|
||||||
|
font-size: 52px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
.city-list {
|
.city-list {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user