From 858c7e91183890037e7c55da5a5f7b91ce4b3eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 03:16:10 +0200 Subject: [PATCH] Show min/max elevation in meters in the elevation legend Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/ElevationChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/planner/app/components/ElevationChart.tsx b/apps/planner/app/components/ElevationChart.tsx index 75b0487..eb1536b 100644 --- a/apps/planner/app/components/ElevationChart.tsx +++ b/apps/planner/app/components/ElevationChart.tsx @@ -346,9 +346,9 @@ export function ElevationChart({ yjs, onHover, days }: ElevationChartProps) { {"15%+"} )} {colorMode === "elevation" && (<> - {t("elevation.low")} + {Math.round(Math.min(...points.map(p => p.elevation)))}m - {t("elevation.high")} + {Math.round(Math.max(...points.map(p => p.elevation)))}m )} {colorMode === "surface" && ( {t("colorMode.surfaceLegend")}