fix: hide signalViewWrap entirely in modesWithVisuals to prevent layout bleed

The flex container was still occupying space even when all its children
were hidden, causing a blank box to overlap mode-specific content in
Bluetooth, WiFi, SSTV and other modesWithVisuals.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-05-21 21:21:13 +01:00
parent fe222c0393
commit 9c15ece508
+8 -1
View File
@@ -4900,8 +4900,15 @@
// Hide the signal feed output for modes that have their own visuals
const outputEl = document.getElementById('output');
const signalViewWrapEl = document.getElementById('signalViewWrap');
const modesWithVisuals = ['satellite', 'sstv', 'weathersat', 'sstv_general', 'wefax', 'aprs', 'wifi', 'bluetooth', 'tscm', 'spystations', 'meshtastic', 'meshcore', 'websdr', 'subghz', 'spaceweather', 'bt_locate', 'wifi_locate', 'waterfall', 'morse', 'meteor', 'system', 'ook', 'radiosonde', 'gps', 'drone'];
if (outputEl) outputEl.style.display = modesWithVisuals.includes(mode) ? 'none' : 'block';
if (modesWithVisuals.includes(mode)) {
if (signalViewWrapEl) signalViewWrapEl.style.display = 'none';
if (outputEl) outputEl.style.display = 'none';
} else {
if (signalViewWrapEl) signalViewWrapEl.style.display = '';
if (outputEl) outputEl.style.display = 'block';
}
if (typeof PagerDirectory !== 'undefined') PagerDirectory.applyViewState(mode);
if (typeof SensorDashboard !== 'undefined') SensorDashboard.applyViewState(mode);