From 6e8b159126fda08641f5be95334e01b4f35379e9 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Sun, 5 Apr 2026 00:49:28 +0300 Subject: [PATCH] fix: weather CSS card shows empty source name after hard refresh Weather sources cache was not fetched during streams tab load, so the card renderer could not resolve weather source names. Also widened lat/lon inputs from 80px to 100px to fit longer coordinates. --- server/src/wled_controller/static/css/modal.css | 2 +- server/src/wled_controller/static/js/features/streams.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/wled_controller/static/css/modal.css b/server/src/wled_controller/static/css/modal.css index 73b120b..9434151 100644 --- a/server/src/wled_controller/static/css/modal.css +++ b/server/src/wled_controller/static/css/modal.css @@ -2110,7 +2110,7 @@ } .weather-location-field input[type="number"] { - width: 80px; + width: 100px; } .composite-layer-drag-handle:active { diff --git a/server/src/wled_controller/static/js/features/streams.ts b/server/src/wled_controller/static/js/features/streams.ts index 264d8c6..be80241 100644 --- a/server/src/wled_controller/static/js/features/streams.ts +++ b/server/src/wled_controller/static/js/features/streams.ts @@ -39,6 +39,7 @@ import { gradientsCache, GradientEntity, audioProcessingTemplatesCache, _cachedAudioProcessingTemplates, audioFilterDefsCache, + weatherSourcesCache, } from '../core/state.ts'; import { API_BASE, getHeaders, fetchWithAuth, escapeHtml } from '../core/api.ts'; import { t } from '../core/i18n.ts'; @@ -286,6 +287,7 @@ export async function loadPictureSources() { colorStripSourcesCache.fetch(), csptCache.fetch(), gradientsCache.fetch(), + weatherSourcesCache.fetch(), audioProcessingTemplatesCache.fetch(), audioFilterDefsCache.data.length === 0 ? audioFilterDefsCache.fetch() : Promise.resolve(audioFilterDefsCache.data), filtersCache.data.length === 0 ? filtersCache.fetch() : Promise.resolve(filtersCache.data),