[feat](trx-frontend-http): enhance header telemetry and responsive UX
Implement UI refinements for the HTTP frontend main and plugin views.\n\n- add dimmed header signal graph with live rendering and scale\n- make graph responsive, colorized by signal strength, and keep last 10s only\n- add APRS and WSPR text filtering, matching FT8 behavior\n- refine responsive layout for controls/map/header behavior\n- tune jog wheel/button sizing and mode selector height alignment\n\nCo-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -19,20 +19,31 @@ body { font-family: sans-serif; margin: 0; min-height: 100vh; box-sizing: border
|
||||
.label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; display: block; }
|
||||
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem 1rem; }
|
||||
input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem; font-size: 1rem; border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); color: var(--text); }
|
||||
#mode { height: 2.6rem; }
|
||||
#freq { font-family: 'DSEG14 Classic', monospace; font-size: 2rem; padding: 0.5rem 0.6rem; letter-spacing: 0.05em; text-align: center; }
|
||||
.controls-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
align-items: stretch;
|
||||
}
|
||||
.controls-col {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
}
|
||||
.controls-col { min-width: 0; }
|
||||
.controls-col-center { justify-self: center; width: auto; }
|
||||
.controls-row .label {
|
||||
margin-bottom: 6px;
|
||||
min-height: 1.2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.controls-col .inline,
|
||||
.controls-col .jog-container,
|
||||
.controls-col .btn-grid {
|
||||
align-self: center;
|
||||
}
|
||||
.btn-grid {
|
||||
display: grid;
|
||||
@@ -47,8 +58,8 @@ input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.jog-wheel {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
width: 83.2px;
|
||||
height: 83.2px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle at 40% 35%, #2a3444, #1a2230);
|
||||
border: 2px solid var(--border-light);
|
||||
@@ -62,20 +73,20 @@ input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem;
|
||||
}
|
||||
.jog-indicator {
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
height: 10px;
|
||||
width: 6.4px;
|
||||
height: 16px;
|
||||
background: var(--accent-green);
|
||||
border-radius: 2px;
|
||||
top: 4px;
|
||||
top: 6.4px;
|
||||
left: 50%;
|
||||
transform-origin: 50% 22px;
|
||||
transform-origin: 50% 35.2px;
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.jog-btn {
|
||||
width: 2.2rem;
|
||||
height: 2.2rem;
|
||||
font-size: 1.2rem;
|
||||
width: 3.3rem;
|
||||
height: 3.3rem;
|
||||
font-size: 1.8rem;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -143,7 +154,29 @@ button:disabled { opacity: 0.6; cursor: not-allowed; }
|
||||
.freq-inline #freq { flex: 1 1 auto; }
|
||||
small { color: var(--text-muted); }
|
||||
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
|
||||
.header-text {
|
||||
width: 16em;
|
||||
min-width: 16em;
|
||||
flex: 0 0 16em;
|
||||
}
|
||||
.title { font-size: 1.4rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; }
|
||||
.header-signal-wrap {
|
||||
flex: 1 1 auto;
|
||||
width: auto;
|
||||
min-width: 160px;
|
||||
height: clamp(2.6rem, 8vh, 4.5rem);
|
||||
margin: 0 1.5em;
|
||||
border: 1px solid color-mix(in srgb, var(--border-light) 55%, transparent);
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--input-bg) 72%, transparent);
|
||||
opacity: 0.45;
|
||||
overflow: hidden;
|
||||
}
|
||||
#header-sig-canvas {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
.header-logo { height: 6em; width: auto; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35)); }
|
||||
.subtitle { color: var(--text-muted); font-size: 0.95rem; }
|
||||
.subtitle a { color: var(--accent-green); text-decoration: none; }
|
||||
@@ -273,6 +306,8 @@ button:focus-visible, input:focus-visible, select:focus-visible {
|
||||
.card { padding: 1rem; }
|
||||
button { min-height: 2.8rem; font-size: 0.95rem; }
|
||||
input.status-input, select.status-input { font-size: 1.1rem; }
|
||||
.header-text { width: auto; min-width: 0; flex: 0 1 auto; }
|
||||
.header-signal-wrap { display: none; }
|
||||
.controls-row { grid-template-columns: 1fr auto; }
|
||||
.controls-col-power { grid-column: 1 / -1; }
|
||||
.ft8-controls { flex-wrap: wrap; }
|
||||
|
||||
Reference in New Issue
Block a user