fix: home map visible on mobile, invalidateSize on both maps
- Explicit height: 40vh on .home-map (not just 100% of parent) so Leaflet can measure the container reliably before CSS inheritance is resolved - align-self: stretch on .home-map-col so it spans full width in flex column - setTimeout invalidateSize(100ms) on home and dailies maps as safety net Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RB86BaJBG3eGiMdfhmHRrQ
This commit is contained in:
@@ -74,6 +74,7 @@ if (latLngs.length === 1) {
|
||||
} else {
|
||||
map.fitBounds(L.latLngBounds(latLngs), { padding: [20, 20] });
|
||||
}
|
||||
setTimeout(function() { map.invalidateSize(); }, 100);
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user