From d322363e5342323506431595e735ff2cf804372e Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 19 Oct 2026 13:07:19 +0200 Subject: [PATCH] feat(tours): adding a point and picking a trip place as one quiet bar The two ways to add a stop sat side by side as dashed boxes of different widths, and the first changed its words while the map waited for a click, which cut them off. They are now the two halves of one bar in the look of the editor's other switches: equal width, the one in use raised, the label the same in both states. While the map waits for a click the half is raised with its icon in the accent, and its tooltip says to click the map. --- .../Tours/planner/TourWaypointList.tsx | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/client/src/components/Tours/planner/TourWaypointList.tsx b/client/src/components/Tours/planner/TourWaypointList.tsx index 4343d40ab..aa26e467e 100644 --- a/client/src/components/Tours/planner/TourWaypointList.tsx +++ b/client/src/components/Tours/planner/TourWaypointList.tsx @@ -573,24 +573,27 @@ function AddPointRow({ }) { const { t } = useTranslation(); const active = useTourPlaceToolStore((state) => state.placing[state.mode]); + // The look of the editor's segmented switches (Hike | Paddle tour): one quiet bar, two equal halves, + // the one in use raised. Two ways in to one list, not two boxes competing for it. const look = (on: boolean) => - `flex min-w-0 items-center justify-center gap-1.5 rounded-[12px] border border-dashed px-3 py-2.5 font-semibold transition-colors disabled:cursor-default disabled:opacity-40 ${on ? 'border-accent bg-surface-card text-content' : 'border-edge text-content-muted enabled:hover:border-content-faint enabled:hover:text-content'}`; + `inline-flex min-w-0 flex-1 items-center justify-center gap-1.5 rounded-[8px] px-3 py-1.5 font-medium transition-colors disabled:cursor-default disabled:opacity-40 ${on ? 'bg-surface-card text-content shadow-sm' : 'text-content-muted enabled:hover:text-content'}`; return ( -
- +
+ {/* One label in both states, so the halves never shift; the raised half and the tooltip say it is on. */} + + +