[feat](trx-rs): tighten spectrum refresh and header layout
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -40,7 +40,7 @@ impl RemoteEndpoint {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const SPECTRUM_POLL_INTERVAL: Duration = Duration::from_millis(200);
|
const SPECTRUM_POLL_INTERVAL: Duration = Duration::from_millis(100);
|
||||||
|
|
||||||
pub struct RemoteClientConfig {
|
pub struct RemoteClientConfig {
|
||||||
pub addr: String,
|
pub addr: String,
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
<div class="title"><span id="rig-title">trx-rs</span></div>
|
<div class="title"><span id="rig-title">trx-rs</span></div>
|
||||||
<div class="subtitle" id="server-subtitle"></div>
|
<div class="subtitle" id="server-subtitle"></div>
|
||||||
<div class="subtitle" id="rig-subtitle" style="font-weight: 700;">Rig: --</div>
|
<div class="subtitle" id="rig-subtitle" style="font-weight: 700;">Rig: --</div>
|
||||||
<div class="subtitle" id="owner-subtitle">Owner: --</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="overview-strip">
|
<div class="overview-strip">
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
--wavelength-fg: #8da3be;
|
--wavelength-fg: #8da3be;
|
||||||
--spectrum-bg: #0a0f18;
|
--spectrum-bg: #0a0f18;
|
||||||
--jog-wheel-size: 83.2px;
|
--jog-wheel-size: 83.2px;
|
||||||
--header-waterfall-overlap: 3.2rem;
|
--header-waterfall-overlap: 3.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="light"] {
|
[data-theme="light"] {
|
||||||
@@ -667,7 +667,7 @@ button:focus-visible, input:focus-visible, select:focus-visible {
|
|||||||
.card { padding: 0.7rem 0.7rem 1rem; }
|
.card { padding: 0.7rem 0.7rem 1rem; }
|
||||||
button { min-height: 2.8rem; font-size: 0.95rem; }
|
button { min-height: 2.8rem; font-size: 0.95rem; }
|
||||||
input.status-input, select.status-input { font-size: 1.1rem; }
|
input.status-input, select.status-input { font-size: 1.1rem; }
|
||||||
:root { --header-waterfall-overlap: 2.2rem; }
|
:root { --header-waterfall-overlap: 2.6rem; }
|
||||||
.controls-tray { width: max(100%, 52rem); padding-left: 0.85rem; padding-right: 0.85rem; }
|
.controls-tray { width: max(100%, 52rem); padding-left: 0.85rem; padding-right: 0.85rem; }
|
||||||
.freq-inline { gap: 0.5rem; }
|
.freq-inline { gap: 0.5rem; }
|
||||||
.freq-inline { flex-wrap: wrap; }
|
.freq-inline { flex-wrap: wrap; }
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ pub async fn spectrum(
|
|||||||
let context_updates = context.get_ref().clone();
|
let context_updates = context.get_ref().clone();
|
||||||
let mut last_revision: Option<u64> = None;
|
let mut last_revision: Option<u64> = None;
|
||||||
let updates =
|
let updates =
|
||||||
IntervalStream::new(time::interval(Duration::from_millis(200))).filter_map(move |_| {
|
IntervalStream::new(time::interval(Duration::from_millis(100))).filter_map(move |_| {
|
||||||
let context = context_updates.clone();
|
let context = context_updates.clone();
|
||||||
std::future::ready({
|
std::future::ready({
|
||||||
let next = context
|
let next = context
|
||||||
|
|||||||
Reference in New Issue
Block a user