From b0a423e9c592d29e5aa8c66d88eaa734c8f5b715 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 02:10:18 +0800 Subject: [PATCH] Map pins drifted on zoom: keep position:absolute on the pin (all:unset reset it to static, so MapLibre's placement was lost) Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01TwEhKE8qd1dQVno8YgYZVX --- components/ReportsMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ReportsMap.tsx b/components/ReportsMap.tsx index 13516ee..26ef052 100644 --- a/components/ReportsMap.tsx +++ b/components/ReportsMap.tsx @@ -24,7 +24,8 @@ function pinElement(r: ReportSummary): HTMLButtonElement { el.type = "button"; el.setAttribute("aria-label", `${r.title}, ${STATUS_LABEL[r.status]}`); // No transition here: MapLibre positions this element with transform, so animating it makes pins wobble. - el.style.cssText = "all:unset;cursor:pointer;display:block;width:34px;height:44px"; + // Keep position:absolute here. `all:unset` would reset it to static, and MapLibre then drifts every pin on zoom. + el.style.cssText = "position:absolute;top:0;left:0;margin:0;padding:0;border:0;background:none;cursor:pointer;display:block;width:34px;height:44px"; el.innerHTML = `