[fix](trx-frontend-http): restore synced frequency and rds badge
Co-authored-by: Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -949,7 +949,7 @@ function resetRdsDisplay() {
|
|||||||
updateRdsPsOverlay(null);
|
updateRdsPsOverlay(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyLocalTunedFrequency(hz) {
|
function applyLocalTunedFrequency(hz, forceDisplay = false) {
|
||||||
if (!Number.isFinite(hz)) return;
|
if (!Number.isFinite(hz)) return;
|
||||||
const freqChanged = lastFreqHz !== hz;
|
const freqChanged = lastFreqHz !== hz;
|
||||||
if (freqChanged) {
|
if (freqChanged) {
|
||||||
@@ -957,7 +957,10 @@ function applyLocalTunedFrequency(hz) {
|
|||||||
}
|
}
|
||||||
lastFreqHz = hz;
|
lastFreqHz = hz;
|
||||||
refreshWavelengthDisplay(lastFreqHz);
|
refreshWavelengthDisplay(lastFreqHz);
|
||||||
if (!freqDirty) {
|
if (forceDisplay) {
|
||||||
|
freqDirty = false;
|
||||||
|
}
|
||||||
|
if (forceDisplay || !freqDirty) {
|
||||||
refreshFreqDisplay();
|
refreshFreqDisplay();
|
||||||
}
|
}
|
||||||
window.ft8BaseHz = lastFreqHz;
|
window.ft8BaseHz = lastFreqHz;
|
||||||
@@ -1233,7 +1236,7 @@ function render(update) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (update.status && update.status.freq && typeof update.status.freq.hz === "number") {
|
if (update.status && update.status.freq && typeof update.status.freq.hz === "number") {
|
||||||
applyLocalTunedFrequency(update.status.freq.hz);
|
applyLocalTunedFrequency(update.status.freq.hz, true);
|
||||||
}
|
}
|
||||||
if (update.status && update.status.mode) {
|
if (update.status && update.status.mode) {
|
||||||
const mode = normalizeMode(update.status.mode);
|
const mode = normalizeMode(update.status.mode);
|
||||||
|
|||||||
@@ -446,15 +446,15 @@ small { color: var(--text-muted); }
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: calc(-1 * var(--header-waterfall-overlap)) 0 0.95rem;
|
margin: calc(-1 * var(--header-waterfall-overlap)) 0 0.95rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 4;
|
||||||
}
|
}
|
||||||
#rds-ps-overlay {
|
#rds-ps-overlay {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.35rem;
|
top: calc(var(--header-waterfall-overlap) + 0.35rem);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
z-index: 2;
|
z-index: 5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
font-family: 'DSEG14 Classic', monospace;
|
font-family: 'DSEG14 Classic', monospace;
|
||||||
font-size: clamp(1rem, 2.2vw, 1.45rem);
|
font-size: clamp(1rem, 2.2vw, 1.45rem);
|
||||||
|
|||||||
Reference in New Issue
Block a user