diff --git a/views/webpage_map.tpl b/views/webpage_map.tpl index 155c881..5eaa094 100644 --- a/views/webpage_map.tpl +++ b/views/webpage_map.tpl @@ -1,7 +1,7 @@ % rebase('webpage_base.tpl')
-
+
diff --git a/webassets/css/style.css b/webassets/css/style.css index 32eff98..c0bd092 100644 --- a/webassets/css/style.css +++ b/webassets/css/style.css @@ -246,13 +246,24 @@ div.band-spot:hover span.band-spot-info { /* GENERAL MOBILE SUPPORT */ @media (max-width: 991.99px) { + /* General "hide this on mobile" class */ .hideonmobile { display: none !important; } + /* Make map stretch to horizontal screen edges */ div#map, div#table-container, div#bands-container { margin-left: -1em; margin-right: -1em; } + /* Avoid map page filters panel being larger than the map itself */ + #maptools .appearing-panel { + max-height: 30em; + } + #maptools .appearing-panel .card-body { + max-height: 26em; + overflow: scroll; + } + /* Filter/search DX Call field should be smaller on mobile */ input#filter-dx-call { max-width: 6em; margin-right: 0; diff --git a/webassets/js/map.js b/webassets/js/map.js index d04da63..564d8f2 100644 --- a/webassets/js/map.js +++ b/webassets/js/map.js @@ -249,4 +249,6 @@ $(document).ready(function() { setUpMap(); // Call loadOptions(), this will then trigger loading spots and setting up timers. loadOptions(); + // Prevent scrolling actions in the popup menus being passed through to the map + L.DomEvent.disableScrollPropagation(document.getElementById('maptools')); }); \ No newline at end of file