From eb1ab7d9e477f1a90edb2c9bd49b9d6b247014f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Wed, 15 Jul 2026 21:44:05 +0200 Subject: [PATCH] fix(planner): note tooltip sizes to content (width max-content, cap 280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refines #594: a fixed width made short notes an oversized box and wrapped long notes early. Use `width: max-content` capped at `max-width: 280` so the tooltip hugs short notes on one line and grows to 280px before wrapping long ones (instead of collapsing to the longest word, the pre-#593 bug). Keeps the centered text. Verified in local dev with both a short ("Zug zurück?") and a long note. 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 292d835..1aa013e 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}