[fix](trx-frontend): restore sdr frequency accent and waterfall gap
Keep the SDR frequency input accented without extra VFOs and restore the bottom spacing below the waterfall. Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -1419,6 +1419,7 @@ function render(update) {
|
||||
cwToneEl.disabled = disabled;
|
||||
cwToneEl.readOnly = disabled;
|
||||
}
|
||||
let activeFreqColor = "var(--accent-green)";
|
||||
if (update.status && update.status.vfo && Array.isArray(update.status.vfo.entries)) {
|
||||
const entries = update.status.vfo.entries;
|
||||
const activeIdx = Number.isInteger(update.status.vfo.active) ? update.status.vfo.active : null;
|
||||
@@ -1436,7 +1437,7 @@ function render(update) {
|
||||
if (activeIdx === idx) {
|
||||
btn.classList.add("active");
|
||||
btn.style.color = color;
|
||||
freqEl.style.color = color;
|
||||
activeFreqColor = color;
|
||||
} else btn.addEventListener("click", async () => {
|
||||
btn.disabled = true;
|
||||
showHint("Toggling VFO…");
|
||||
@@ -1455,6 +1456,9 @@ function render(update) {
|
||||
} else {
|
||||
vfoPicker.innerHTML = "<button type=\"button\" class=\"active\">--</button>";
|
||||
}
|
||||
if (freqEl) {
|
||||
freqEl.style.color = activeFreqColor;
|
||||
}
|
||||
if (update.status && update.status.rx && typeof update.status.rx.sig === "number") {
|
||||
const sUnits = dbmToSUnits(update.status.rx.sig);
|
||||
sigLastSUnits = sUnits;
|
||||
|
||||
Reference in New Issue
Block a user