mirror of
https://github.com/smittix/intercept.git
synced 2026-07-18 22:38:10 -07:00
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:
@@ -4900,8 +4900,15 @@
|
|||||||
|
|
||||||
// Hide the signal feed output for modes that have their own visuals
|
// Hide the signal feed output for modes that have their own visuals
|
||||||
const outputEl = document.getElementById('output');
|
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'];
|
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 PagerDirectory !== 'undefined') PagerDirectory.applyViewState(mode);
|
||||||
if (typeof SensorDashboard !== 'undefined') SensorDashboard.applyViewState(mode);
|
if (typeof SensorDashboard !== 'undefined') SensorDashboard.applyViewState(mode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user