From df2cb09a056ddc984b9d230c9e6b91acee50ffa2 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sat, 4 Apr 2026 09:50:05 +0300 Subject: [PATCH] fix: replace Leaflet with pure SVG map to eliminate WebKit GPU seams WebKit Bug #156130 causes 1px gaps at translate3d boundaries on retina displays. Both Leaflet and MapLibre use translate3d internally, making the artifact unfixable from app code. Pure SVG with viewBox zoom/pan has no translate3d, no tiling, no GPU compositor layers = no seams. Co-Authored-By: Claude Opus 4.6 (1M context) --- layouts/shortcodes/world-map.html | 303 +++++++++++++++++++----------- 1 file changed, 192 insertions(+), 111 deletions(-) diff --git a/layouts/shortcodes/world-map.html b/layouts/shortcodes/world-map.html index 7cddbba..7c28a38 100644 --- a/layouts/shortcodes/world-map.html +++ b/layouts/shortcodes/world-map.html @@ -1,31 +1,46 @@ {{ $lang := .Page.Language.Lang }} {{ $countries := hugo.Data.countries }} -

{{ if eq $lang "de" }}Interaktive Weltkarte: Kinderschutzgesetze{{ else if eq $lang "fr" }}Carte interactive : lois de protection de l'enfance{{ else }}Interactive Map: Child Protection Laws{{ end }}

{{ if eq $lang "de" }}Klicken Sie auf ein Land für Details{{ else if eq $lang "fr" }}Cliquez sur un pays pour plus de détails{{ else }}Click a country for details{{ end }}

-
+
+ +
+ + + +
+
+
{{ if eq $lang "de" }}In Kraft{{ else if eq $lang "fr" }}En vigueur{{ else }}Enforced{{ end }}
{{ if eq $lang "de" }}Verabschiedet{{ else if eq $lang "fr" }}Adopté{{ else }}Passed{{ end }}
@@ -35,7 +50,6 @@
-