From 18c9d12c48e923b2ddccb360fabd0dd3322423be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 00:38:49 +0200 Subject: [PATCH] Use CSS scale(1.17) for waypoint highlight instead of sizing individually Single transform handles both the marker and text scaling uniformly. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/PlannerMap.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/planner/app/components/PlannerMap.tsx b/apps/planner/app/components/PlannerMap.tsx index 2e58f90..eec3bd6 100644 --- a/apps/planner/app/components/PlannerMap.tsx +++ b/apps/planner/app/components/PlannerMap.tsx @@ -16,18 +16,17 @@ import "leaflet/dist/leaflet.css"; function waypointIcon(index: number, overnight?: boolean, highlighted?: boolean): L.DivIcon { const bg = overnight ? "#8B6D3A" : "#2563eb"; - const size = highlighted ? 28 : 24; - const offset = size / 2; + const scale = highlighted ? "scale(1.17)" : "scale(1)"; return L.divIcon({ className: "", html: `
${overnight ? "☾" : index + 1}
`, iconSize: [0, 0], });