From 00fc1dbdfba3bc9d5898ae96ae081c284633d7ea Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Tue, 10 Mar 2026 19:03:49 +0100 Subject: [PATCH] [fix](trx-frontend-http): increase map height in normal view Raise the viewport cap from 60% to 75% of window height and relax the aspect-ratio divisor from 1.9 to 1.55, giving the map more vertical space without requiring fullscreen. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 509778e..4fed3e0 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 @@ -4567,10 +4567,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.9) : available; + const widthDriven = width > 0 ? Math.floor(width / 1.55) : available; const viewportCap = mapIsFullscreen() ? Math.floor(window.innerHeight * 0.9) - : Math.floor(window.innerHeight * 0.6); + : Math.floor(window.innerHeight * 0.75); const minHeight = Math.min(260, available); const target = Math.max(minHeight, Math.min(available, viewportCap, widthDriven)); mapEl.style.height = `${target}px`;