[feat](trx-frontend-http): improve mobile UX and fix S0/S9 label offset
- Add viewport meta tag so mobile browsers use device width instead of the default 980px desktop viewport - Add 520px breakpoint: remove controls-tray forced min-width (was 52–58rem, causing horizontal scroll on phones), stack controls-row into a single column with jog wheel first (order: -1) - Scale frequency DSEG14 display with clamp() on narrow screens - Make volume sliders responsive width with larger 20px thumb - Raise spectrum Set/Auto button and input heights to 2.2rem (overrides the min-height: 0 that blocked the existing 760px touch-size rule) - Add overflow-x: auto + flex-shrink: 0 to sub-tab-bar so all six plugin tabs are reachable on small screens without clipping - Swap spectrum hint text based on input device: mouse/keyboard hint hidden on touch devices, touch-specific hint shown instead - Offset S0/S9/S9+ signal history labels 6px below their grid lines Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<title>trx-rs v{ver}</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/dseg14-classic/400.css" />
|
||||
@@ -84,7 +85,8 @@
|
||||
<button id="spectrum-auto-btn" type="button">Auto</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="spectrum-hint">Scroll to zoom · Ctrl+Scroll to tune · Drag to pan · Drag BW edges to resize</div>
|
||||
<div id="spectrum-hint" class="spectrum-hint-mouse">Scroll to zoom · Ctrl+Scroll to tune · Drag to pan · Drag BW edges to resize</div>
|
||||
<div id="spectrum-hint-touch" class="spectrum-hint-touch">Pinch to zoom · Drag to pan · Drag BW edges to resize</div>
|
||||
</div>
|
||||
<div class="status">
|
||||
<div class="full-row freq-row">
|
||||
|
||||
Reference in New Issue
Block a user