From 4a429c8c5940aaa9cb2579c2b6df909e1a9d7951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 00:30:49 +0200 Subject: [PATCH] Shrink day label pill and fix centering Use absolute positioning with left:50% + translate(-50%) for proper horizontal centering of auto-width content. Reduced font to 10px, padding to 1px 6px, border-radius to 8px. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/PlannerMap.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/planner/app/components/PlannerMap.tsx b/apps/planner/app/components/PlannerMap.tsx index ee5368b..73a5c27 100644 --- a/apps/planner/app/components/PlannerMap.tsx +++ b/apps/planner/app/components/PlannerMap.tsx @@ -33,14 +33,15 @@ function waypointIcon(index: number, overnight?: boolean): L.DivIcon { function dayLabelIcon(dayNumber: number, distanceKm: string): L.DivIcon { return L.divIcon({ className: "", - html: `
Day ${dayNumber} · ${distanceKm} km
`, - iconSize: [120, 20], - iconAnchor: [60, 44], + html: `
+
Day ${dayNumber} · ${distanceKm} km
+
`, + iconSize: [0, 0], }); }