diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index 03dc786..5d330bb 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -695,7 +695,8 @@ body::after { @media (max-width: 768px) { .home-layout { display: flex; flex-direction: column; } - .home-map-col { position: static; height: 40vh; } + .home-map-col { position: static; height: 40vh; align-self: stretch; } + .home-map { height: 40vh; } .home-feed-col { padding: var(--space-6) var(--space-5); } } diff --git a/themes/intotheeast/templates/dailies.html.twig b/themes/intotheeast/templates/dailies.html.twig index 6432363..cd57fdb 100644 --- a/themes/intotheeast/templates/dailies.html.twig +++ b/themes/intotheeast/templates/dailies.html.twig @@ -74,6 +74,7 @@ if (latLngs.length === 1) { } else { map.fitBounds(L.latLngBounds(latLngs), { padding: [20, 20] }); } +setTimeout(function() { map.invalidateSize(); }, 100); {% endif %} diff --git a/themes/intotheeast/templates/home.html.twig b/themes/intotheeast/templates/home.html.twig index 8c05381..9e011ad 100644 --- a/themes/intotheeast/templates/home.html.twig +++ b/themes/intotheeast/templates/home.html.twig @@ -163,6 +163,7 @@ if (latLngs.length === 1) { } else { map.fitBounds(L.latLngBounds(latLngs), { padding: [20, 20] }); } +setTimeout(function() { map.invalidateSize(); }, 100); {% endif %} {% endblock %}