From eb8f6098768534fadaaa8d9efbc95b7d8ca5d8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Fri, 8 May 2026 17:16:28 +0200 Subject: [PATCH] V 1.5.5 fix: Stundenzahl im 7d-Tooltip entfernt Co-Authored-By: Claude Sonnet 4.6 --- frontend/package.json | 2 +- frontend/src/components/WeatherDashboard.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 431c9df..ba86a59 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "wetterstation-frontend", "private": true, - "version": "1.5.4", + "version": "1.5.5", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/WeatherDashboard.jsx b/frontend/src/components/WeatherDashboard.jsx index c709ff9..1636ab8 100644 --- a/frontend/src/components/WeatherDashboard.jsx +++ b/frontend/src/components/WeatherDashboard.jsx @@ -303,7 +303,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } xAxisMin = now - 7 * 24 * 3600 * 1000 xAxisMax = now - tooltipDateFormat = '%d.%m.%Y - %Hh' + tooltipDateFormat = '%d.%m.%Y' break case '30d': xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } @@ -749,7 +749,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' ...getCommonOptions(), tooltip: { formatter: function() { - const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : (timeRange === '7d' || timeRange === '30d' ? '%d.%m.%Y - %Hh' : '%d.%m.%Y') + const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : '%d.%m.%Y' const dateStr = Highcharts.dateFormat(dateFormat, this.x) return `${dateStr}
\u25CF ${this.series.name}: ${this.y.toFixed(0)}°` }