From 27b736a819239a87545bce1a0a086dc349d3bf54 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 5 Dec 2026 01:38:11 +0100 Subject: [PATCH] fix(planner): align the day route controls --- client/src/components/Planner/DayPlanSidebar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index 03358e8b1..b9008f3a6 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -2521,7 +2521,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP {/* Routen-Werkzeuge (ausgewählter Tag, 2+ Orte — oder 1 Ort mit Hotel-Bookend #1330 — oder Hotel-zu-Hotel-Transfertag ohne Orte #1297) */} {showRouteTools && (
-
+
{/* The day's travel mode as one segmented control. */} -
+
{routeProfileOptions.map(p => { const ModeIcon = routeModeIcon(p.key) const active = (day.default_transport_mode ?? routeProfile) === p.key @@ -2558,15 +2559,14 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar(props: DayPlanSidebarP onClick={() => setDayDefaultMode(day.id, p.key)} aria-label={p.label} aria-pressed={active} - className={`grid h-[26px] w-8 place-items-center rounded-[7px] transition-colors ${active ? 'bg-surface-tertiary text-content' : 'text-content-muted hover:text-content'}`} + className={`grid h-6 w-8 place-items-center rounded-md transition-colors ${active ? 'bg-surface-selected text-content' : 'text-content-muted hover:bg-surface-hover hover:text-content'}`} > - + ) })}
- {/* Icon-only (#1981): the label stays as the accessible name and the tooltip. */} handleOptimize(day.id)} placement="top" className={ROUTE_TOOL}>