diff --git a/client/src/components/Map/MapViewGL.tsx b/client/src/components/Map/MapViewGL.tsx index 51011ced1..2c0500988 100644 --- a/client/src/components/Map/MapViewGL.tsx +++ b/client/src/components/Map/MapViewGL.tsx @@ -214,7 +214,7 @@ export function MapViewGL({ const mapboxToken = useSettingsStore(s => s.settings.mapbox_access_token || '') const mapbox3d = useSettingsStore(s => s.settings.mapbox_3d_enabled !== false) const mapboxQuality = useSettingsStore(s => s.settings.mapbox_quality_mode === true) - const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) !== false + const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) === true const mapLang = useSettingsStore(s => s.settings.language) const isMapLibre = glProvider === 'maplibre-gl' const gl = (isMapLibre ? maplibregl : mapboxgl) as any diff --git a/client/src/components/Map/ReservationOverlay.tsx b/client/src/components/Map/ReservationOverlay.tsx index 33d45f564..f7c7e0cbc 100644 --- a/client/src/components/Map/ReservationOverlay.tsx +++ b/client/src/components/Map/ReservationOverlay.tsx @@ -351,7 +351,7 @@ export default function ReservationOverlay({ reservations, showConnections, show useMapEvents({ zoomend: () => setZoom(map.getZoom()), }) - const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) !== false + const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) === true const items = useMemo(() => { const out: TransportItem[] = [] diff --git a/client/src/components/Settings/DisplaySettingsTab.tsx b/client/src/components/Settings/DisplaySettingsTab.tsx index 280c86185..636497e0d 100644 --- a/client/src/components/Settings/DisplaySettingsTab.tsx +++ b/client/src/components/Settings/DisplaySettingsTab.tsx @@ -247,8 +247,8 @@ export default function DisplaySettingsTab(): React.ReactElement { display: 'flex', alignItems: 'center', gap: 8, padding: '10px 20px', borderRadius: 10, cursor: 'pointer', fontFamily: 'inherit', fontSize: 'calc(14px * var(--fs-scale-body, 1))', fontWeight: 500, - border: (settings.map_booking_labels !== false) === opt.value ? '2px solid var(--text-primary)' : '2px solid var(--border-primary)', - background: (settings.map_booking_labels !== false) === opt.value ? 'var(--bg-hover)' : 'var(--bg-card)', + border: (settings.map_booking_labels === true) === opt.value ? '2px solid var(--text-primary)' : '2px solid var(--border-primary)', + background: (settings.map_booking_labels === true) === opt.value ? 'var(--bg-hover)' : 'var(--bg-card)', color: 'var(--text-primary)', transition: 'all 0.15s', }}