From 8cf483a4ee9c4d9cbee88b7f7ecc86538f81f647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Wed, 15 Jul 2026 17:48:33 +0200 Subject: [PATCH] fix(planner): waypoint-note tooltip no longer collapses to one char per line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The note tooltip's inner span was `display: block` with `word-break: break-word` and no width, so the Leaflet tooltip sized itself to the block's *min-content* — which under break-word is ~1 character — and every character wrapped onto its own line (a tall vertical strip). Switch to `display: inline-block` (sizes to content up to maxWidth, so it stays one line when short and wraps at 220px when long) and the standard `overflow-wrap: break-word`. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/planner/app/components/PlannerMap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/planner/app/components/PlannerMap.tsx b/apps/planner/app/components/PlannerMap.tsx index 2c1e9af..b931000 100644 --- a/apps/planner/app/components/PlannerMap.tsx +++ b/apps/planner/app/components/PlannerMap.tsx @@ -218,7 +218,7 @@ export function PlannerMap({ yjs, sessionId, onRouteRequest, highlightPosition, > {wp.note && ( - + {wp.note.length > 120 ? wp.note.slice(0, 120) + "…" : wp.note}