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 3f8f015..884c906 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 @@ -2040,6 +2040,11 @@ document.querySelector(".tab-bar").addEventListener("click", (e) => { btn.classList.add("active"); document.querySelectorAll(".tab-panel").forEach((p) => p.style.display = "none"); document.getElementById(`tab-${btn.dataset.tab}`).style.display = ""; + if (btn.dataset.tab === "map") { + initAprsMap(); + sizeAprsMapToViewport(); + if (aprsMap) setTimeout(() => aprsMap.invalidateSize(), 50); + } }); // --- Auth startup sequence --- @@ -2379,16 +2384,11 @@ document.querySelectorAll(".sub-tab-bar").forEach((bar) => { const parent = bar.parentElement; parent.querySelectorAll(".sub-tab-panel").forEach((p) => p.style.display = "none"); parent.querySelector(`#subtab-${btn.dataset.subtab}`).style.display = ""; - if (btn.dataset.subtab === "map") { - initAprsMap(); - sizeAprsMapToViewport(); - if (aprsMap) setTimeout(() => aprsMap.invalidateSize(), 50); - } }); }); window.addEventListener("resize", () => { - const mapTab = document.getElementById("subtab-map"); + const mapTab = document.getElementById("tab-map"); if (!mapTab || mapTab.style.display === "none") return; sizeAprsMapToViewport(); }); 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 2f553cc..0c92bf6 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 @@ -16,6 +16,7 @@
--