diff --git a/client/src/components/Tours/planner/TourPlannerPanels.tsx b/client/src/components/Tours/planner/TourPlannerPanels.tsx index 7172785f5..cf03a7ce8 100644 --- a/client/src/components/Tours/planner/TourPlannerPanels.tsx +++ b/client/src/components/Tours/planner/TourPlannerPanels.tsx @@ -7,7 +7,8 @@ import { useSettingsStore } from '../../../store/settingsStore' import { useTourFerrataCrossingStore } from '../../../store/tourFerrataCrossingStore' import { formatDistance } from '../../../utils/units' import ConfirmDialog from '../../shared/ConfirmDialog' -import { NEUTRAL_TINT, fs } from '../../shared/DialogShell' +import { fs } from '../../shared/DialogShell' +import { useRailHeadProps } from './railHead' import EmptyState from '../../shared/EmptyState' import { useToast } from '../../shared/Toast' import { Tooltip } from '../../shared/Tooltip' @@ -74,9 +75,6 @@ import { SkiPlannerSummary } from '../ski/SkiRouteSummary' import { walkTimeFields } from '../walk/walkTimeFields' /** The tinted head band both rails open with, like every panel head in the planner. */ -export const RAIL_HEAD = 'flex flex-none items-start gap-2 border-b border-edge-faint px-3 py-2.5' -/** The head as a rounded band of its own, inset like the controls above it (the touch shell's tours tab). */ -const FLOATING_RAIL_HEAD = 'mx-4 mt-1 flex flex-none items-start gap-2 rounded-xl border border-edge-faint px-3 py-2' /** The title of a rail's head band, with an optional line under it. */ export function RailTitle({ title, sub, aside }: { title: string; sub?: ReactNode; aside?: ReactNode }) { @@ -138,10 +136,11 @@ function NeutralRail({ canEdit: boolean onOpenWanderer?: () => void }) { + const railHead = useRailHeadProps() const { t } = useTranslation() return (
-
+