diff --git a/public/pages/dashboard.js b/public/pages/dashboard.js index b8b6960..2d179e8 100644 --- a/public/pages/dashboard.js +++ b/public/pages/dashboard.js @@ -269,11 +269,12 @@ function renderWeatherWidget(weather) { const { city, current, forecast } = weather; - const forecastHtml = forecast.map((d) => { + const forecastHtml = forecast.map((d, i) => { const date = new Date(d.date + 'T12:00:00'); const label = date.toLocaleDateString('de-DE', { weekday: 'short' }); + const extraCls = i >= 3 ? ' weather-forecast__day--extended' : ''; return ` -