From 5e503cf3a5462a2f7d211c6d8f5d4d812ea2a443 Mon Sep 17 00:00:00 2001 From: Mischa Date: Mon, 22 Jun 2026 00:20:23 +0200 Subject: [PATCH] fix(map): fullscreen btn inside map div, attribution moved to bottom-left Button is back inside #feed-map with z-index:1000 to clear all MapLibre layers. Attribution control disabled in constructor and re-added to bottom-left so bottom-right is free for the fullscreen button. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- themes/intotheeast/css/style.css | 5 +++-- .../intotheeast/templates/dailies.html.twig | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index b272344..be87c9d 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -654,6 +654,7 @@ body::after { } .feed-map { + position: relative; height: 240px; width: 100%; } @@ -664,7 +665,7 @@ body::after { .feed-map-fullscreen-btn { position: absolute; - top: var(--space-2); + bottom: var(--space-2); right: var(--space-2); width: 2rem; height: 2rem; @@ -676,7 +677,7 @@ body::after { display: flex; align-items: center; justify-content: center; - z-index: 20; + z-index: 1000; box-shadow: var(--shadow-sm); transition: background 0.15s; } diff --git a/themes/intotheeast/templates/dailies.html.twig b/themes/intotheeast/templates/dailies.html.twig index 075bc32..94665d4 100644 --- a/themes/intotheeast/templates/dailies.html.twig +++ b/themes/intotheeast/templates/dailies.html.twig @@ -37,13 +37,14 @@ {% if map_entries|length > 0 %}
-
- +
+ +
View full map →
@@ -59,8 +60,10 @@ var feedMap = new maplibregl.Map({ container: 'feed-map', style: MapUtils.MAP_STYLE, center: [20, 20], - zoom: 2 + zoom: 2, + attributionControl: false }); +feedMap.addControl(new maplibregl.AttributionControl({ compact: true }), 'bottom-left'); feedMap.on('load', function () { var bounds = new maplibregl.LngLatBounds();