mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
The Context header carried a Radio icon that opened a second, compact Radio player on top of the panel, duplicating the Radio section that already lives inside Context. Remove the icon, the compact player and everything that kept the two in step. Radio stays in Context as its own section with one Enable control; Cockpit's compact Radio is unchanged. Context itself was hard to read: 7-8 px labels at low contrast, a dashed placeholder box, and a glow halo. The two modes are now one segmented control, labels and guidance are 10 px at higher contrast, the standby hint is plain text, section titles use --text-secondary, and the panel draws no glow. Unused translations are pruned, tests and QA harnesses that pinned the compact player are updated or retired, and CURRENT-STATE and the changelog describe the new header.
12 lines
499 B
JavaScript
12 lines
499 B
JavaScript
/** Keep Radio in Context in every theme, reusing the same playback controls. */
|
|
export function syncRadioPanelPlacement(doc) {
|
|
if (!doc?.getElementById) return;
|
|
const panel = doc.getElementById('radio-panel');
|
|
const context = doc.getElementById('global-context-panel');
|
|
const parent =
|
|
context?.querySelector('.cyber-panel-body') ||
|
|
context?.querySelector('.global-context-panel-inner');
|
|
if (!panel || !parent) return;
|
|
if (panel.parentElement !== parent) parent.append(panel);
|
|
}
|