[fix](trx-client): preserve ft8 history on reload

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-04 19:45:17 +01:00
parent 8b174db04d
commit 0836091bbc
4 changed files with 62 additions and 29 deletions
@@ -3877,8 +3877,15 @@ function initAprsMap() {
function sizeAprsMapToViewport() {
const mapEl = document.getElementById("aprs-map");
if (!mapEl) return;
const mapRect = mapEl.getBoundingClientRect();
const stage = mapStageEl();
if (mapIsFullscreen() && stage) {
const stageHeight = stage.clientHeight || stage.getBoundingClientRect().height;
const target = Math.max(260, Math.floor(stageHeight));
mapEl.style.height = `${target}px`;
if (aprsMap) aprsMap.invalidateSize();
return;
}
const mapRect = mapEl.getBoundingClientRect();
const width = mapEl.clientWidth || mapRect.width;
const footer = document.querySelector(".footer");
let bottom = mapIsFullscreen() && stage