From e2f8f8cc5324818ad9a6afd88e461524d362035d Mon Sep 17 00:00:00 2001 From: Fraxle Date: Thu, 9 Jul 2026 10:42:55 +0100 Subject: [PATCH] 3.2.3.2 Fix banner clicks Make simple/table switch clearer --- assets/css/table.css | 31 +++++++++++++++++++++++++++++- assets/css/ui.css | 7 ++++--- assets/js/app.js | 16 +++++++++++---- assets/js/events/weather-checks.js | 6 +++--- 4 files changed, 49 insertions(+), 11 deletions(-) diff --git a/assets/css/table.css b/assets/css/table.css index 2cb6714..21f6b70 100644 --- a/assets/css/table.css +++ b/assets/css/table.css @@ -1338,6 +1338,17 @@ /* ── SIMPLE / TABLE VIEW TOGGLE ─────────────────────────────────────────── */ +.forecast-view-toggle-label { + font-family: Manrope, sans-serif; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.07em; + color: #7a5c2a; + margin-right: 5px; + flex-shrink: 0; +} + .forecast-view-toggle { display: inline-flex; align-items: center; @@ -1345,11 +1356,14 @@ margin-right: 8px; } .fvt-btn { + display: inline-flex; + align-items: center; + gap: 3px; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; line-height: 1; - padding: 4px 10px; + padding: 6px 14px; cursor: pointer; border: 1.5px solid #c9b08a; background: #f5edd6; @@ -1374,6 +1388,12 @@ color: #fff; } +.fvt-btn-icon { + display: inline-block; + vertical-align: middle; + flex-shrink: 0; +} + /* Interval buttons shown in the col-toggles bar in simple mode */ .fvt-interval { display: none; @@ -1385,6 +1405,15 @@ .table-main--simple .fvt-interval { display: inline-flex; } +.fvt-interval-label { + font-family: Manrope, sans-serif; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.07em; + color: #7a5c2a; + margin-right: 3px; +} /* Hide table-mode column controls when in simple mode */ .table-main--simple .col-toggles-label, diff --git a/assets/css/ui.css b/assets/css/ui.css index 7d62164..67814c8 100644 --- a/assets/css/ui.css +++ b/assets/css/ui.css @@ -110,13 +110,14 @@ /* Slideshow dots */ .event-banner-dots { display: flex; - gap: 5px; + gap: 10px; margin-top: 7px; align-items: center; + padding: 5px 0; } .event-banner-dot { - width: 6px; - height: 6px; + width: 10px; + height: 10px; border-radius: 50%; opacity: 0.35; cursor: pointer; diff --git a/assets/js/app.js b/assets/js/app.js index 16c8ffb..09617ee 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -616,7 +616,7 @@ export function UTCIForecast() { `} ${activeEvents.length > 1 && html` -
+
e.stopPropagation()}> ${activeEvents.map((_, i) => html`
+ View: - - + + + Hours: ${[1, 2, 3, 4].map(n => html``)} ${forecastView === 'simple' && (() => { @@ -1288,7 +1296,7 @@ export function UTCIForecast() {
diff --git a/assets/js/events/weather-checks.js b/assets/js/events/weather-checks.js index 46993c3..d5a9e20 100644 --- a/assets/js/events/weather-checks.js +++ b/assets/js/events/weather-checks.js @@ -121,9 +121,9 @@ export function checkHeatSpike(rows) { : undefined; const msgs = { - notable: `Temperatures reaching ${maxTemp.toFixed(1)}°C — above seasonal norms. Stay hydrated and avoid prolonged sun exposure.`, - severe: `Heat warning: ${maxTemp.toFixed(1)}°C expected today. Risk of heat exhaustion for vulnerable people — keep cool and hydrated.`, - extreme: `Extreme heat alert: ${maxTemp.toFixed(1)}°C forecast. Risk of heat stroke — avoid outdoor activity during peak hours.`, + notable: `Air temperature reaching ${maxTemp.toFixed(1)}°C — above seasonal norms. Stay hydrated and avoid prolonged sun exposure.`, + severe: `Heat warning: Air temp ${maxTemp.toFixed(1)}°C expected today. Risk of heat exhaustion for vulnerable people — keep cool and hydrated.`, + extreme: `Extreme heat alert: Air temp ${maxTemp.toFixed(1)}°C forecast. Risk of heat stroke — avoid outdoor activity during peak hours.`, }; return { id: 'heat-spike',