[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 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -4567,10 +4567,10 @@ function sizeAprsMapToViewport() {
|
|||||||
if (fr.top > mapRect.top + 50) bottom = fr.top;
|
if (fr.top > mapRect.top + 50) bottom = fr.top;
|
||||||
}
|
}
|
||||||
const available = Math.max(0, Math.floor(bottom - mapRect.top - 8));
|
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()
|
const viewportCap = mapIsFullscreen()
|
||||||
? Math.floor(window.innerHeight * 0.9)
|
? 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 minHeight = Math.min(260, available);
|
||||||
const target = Math.max(minHeight, Math.min(available, viewportCap, widthDriven));
|
const target = Math.max(minHeight, Math.min(available, viewportCap, widthDriven));
|
||||||
mapEl.style.height = `${target}px`;
|
mapEl.style.height = `${target}px`;
|
||||||
|
|||||||
Reference in New Issue
Block a user