From 1d090e0ac980f4a6262745d4816fd98fa05ca96d Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 14 Oct 2026 21:14:28 +0200 Subject: [PATCH] fix(tours): the 3D relief slider uses the app's range style --- client/src/components/Tours/terrain/TourTerrainMap.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/Tours/terrain/TourTerrainMap.tsx b/client/src/components/Tours/terrain/TourTerrainMap.tsx index 98f011bac..de095905e 100644 --- a/client/src/components/Tours/terrain/TourTerrainMap.tsx +++ b/client/src/components/Tours/terrain/TourTerrainMap.tsx @@ -1,6 +1,6 @@ import type { FerrataBbox } from '@trek/shared'; import { ChevronDown, ChevronUp, Gauge, Palette, Pause, Play, RotateCcw, Scan, TrendingUp } from 'lucide-react'; -import { useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode } from 'react'; +import { useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type ReactNode } from 'react'; import { useTranslation } from '../../../i18n'; import type { DistanceUnit } from '../../../types'; import type { DistanceIndexedProfileSample, RouteProfileFocus } from '../../../utils/routeGeometry'; @@ -221,7 +221,8 @@ function TerrainDock({ terrain }: { terrain: Omit terrain.setExaggeration(Number(e.target.value))} - className="w-20 accent-[var(--accent)]" + className="trek-range !w-20" + style={{ '--fill': `${((terrain.exaggeration - 1) / 2) * 100}%` } as CSSProperties} /> {terrain.exaggeration.toFixed(1)}×