[fix](trx-frontend): tighten map sizing and path theming

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:32:01 +01:00
parent fbfff4154f
commit 125237f53d
2 changed files with 10 additions and 8 deletions
@@ -3830,8 +3830,10 @@ function sizeAprsMapToViewport() {
if (fr.top > mapRect.top + 50) bottom = fr.top;
}
const available = Math.max(0, Math.floor(bottom - mapRect.top - 8));
const widthDriven = width > 0 ? Math.floor(width / 1.55) : available;
const target = Math.max(0, Math.min(available, widthDriven));
const widthDriven = width > 0 ? Math.floor(width / 2.05) : available;
const viewportCap = Math.floor(window.innerHeight * 0.56);
const minHeight = Math.min(260, available);
const target = Math.max(minHeight, Math.min(available, viewportCap, widthDriven));
mapEl.style.height = `${target}px`;
if (aprsMap) aprsMap.invalidateSize();
}