From 71650c0e707bfe980a2c29f7d4c6c3ae5c1770a4 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 4 Apr 2026 15:34:10 +0200 Subject: [PATCH] [style](trx-frontend-http): use card overlay for map loading indicator Replace the plain centered text with the same overlay card style used by the connection-lost screen (decode-history-overlay + content-overlay). Toggle visibility via the is-hidden class for a smooth fade transition. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 6 +++--- .../trx-frontend-http/assets/web/index.html | 7 ++++++- .../trx-frontend-http/assets/web/style.css | 10 +--------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index df682f2..cfe931b 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -4476,14 +4476,14 @@ function _initMapWhenReady() { const loadingEl = document.getElementById("map-loading"); if (window.trx.map && typeof L !== "undefined") { if (_mapInitTimer) { clearInterval(_mapInitTimer); _mapInitTimer = null; } - if (loadingEl) loadingEl.style.display = "none"; + if (loadingEl) loadingEl.classList.add("is-hidden"); window.trx.map.initAprsMap(); window.trx.map.sizeAprsMapToViewport(); if (window.trx.map.aprsMap) setTimeout(() => window.trx.map.aprsMap.invalidateSize(), 50); return; } - // Not ready yet — show loading and poll until both are available. - if (loadingEl) loadingEl.style.display = ""; + // Not ready yet — show overlay and poll until both are available. + if (loadingEl) loadingEl.classList.remove("is-hidden"); if (!_mapInitTimer) { _mapInitTimer = setInterval(() => { if (_activeTab !== "map") { clearInterval(_mapInitTimer); _mapInitTimer = null; return; } diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 03e75fa..8e5a3e5 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -977,7 +977,12 @@