feat(ui): improve radio operator experience
This commit was merged in pull request #15.
This commit is contained in:
@@ -2839,6 +2839,61 @@ canvas:focus-visible, [tabindex]:focus-visible {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ── Shared interaction primitives ───────────────────────────────────── */
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
width: 1px; height: 1px; padding: 0; margin: -1px;
|
||||
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
||||
}
|
||||
.toast-region {
|
||||
position: fixed; z-index: 120; right: 1rem; bottom: 1rem;
|
||||
display: flex; flex-direction: column; gap: 0.55rem;
|
||||
width: min(26rem, calc(100vw - 2rem)); pointer-events: none;
|
||||
}
|
||||
.toast {
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
|
||||
padding: 0.75rem 0.85rem; border: 1px solid var(--border-light); border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--card-bg) 96%, transparent); color: var(--text);
|
||||
box-shadow: 0 10px 28px color-mix(in srgb, #000 30%, transparent);
|
||||
opacity: 0; transform: translateY(0.5rem); transition: opacity 140ms ease, transform 140ms ease;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.toast-visible { opacity: 1; transform: translateY(0); }
|
||||
.toast-error { border-left: 4px solid var(--accent-red); }
|
||||
.toast-success { border-left: 4px solid var(--accent-green); }
|
||||
.toast button { min-height: 2rem; padding: 0.25rem 0.55rem; }
|
||||
.ui-dialog { border: 0; padding: 0; border-radius: 10px; color: var(--text); background: transparent; }
|
||||
.ui-dialog::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); }
|
||||
.ui-dialog-card { width: min(28rem, calc(100vw - 2rem)); padding: 1.1rem; border: 1px solid var(--border-light); border-radius: 10px; background: var(--card-bg); }
|
||||
.ui-dialog-card h2 { margin: 0 0 0.55rem; font-size: 1.05rem; }
|
||||
.ui-dialog-card p { color: var(--text-muted); line-height: 1.45; }
|
||||
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1rem; }
|
||||
.ui-dialog-actions .danger { background: var(--accent-red); border-color: var(--accent-red); color: white; }
|
||||
.form-error { flex: 1 1 100%; min-height: 1.2em; color: var(--accent-red); font-size: 0.82rem; }
|
||||
button.is-active { border-color: var(--accent-green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-green) 40%, transparent); }
|
||||
#ptt-btn.is-active { background: var(--accent-red) !important; border-color: var(--accent-red) !important; color: white !important; }
|
||||
button.is-busy { cursor: progress; opacity: 0.72; }
|
||||
.operator-layout-picker select { min-height: 2rem; max-width: 8.5rem; border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); color: var(--text); }
|
||||
.advanced-radio-controls { margin-top: 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--input-bg) 55%, transparent); }
|
||||
.advanced-radio-controls summary { cursor: pointer; padding: 0.65rem 0.75rem; color: var(--text-heading); font-weight: 600; }
|
||||
.advanced-radio-body { display: grid; gap: 0.65rem; padding: 0 0.75rem 0.75rem; }
|
||||
body[data-operator-layout="digital"] .controls-col-wfm { display: none !important; }
|
||||
.mobile-more-btn, .mobile-more-menu, .decoder-tab-select { display: none; }
|
||||
.mobile-more-menu {
|
||||
position: fixed; right: 0.8rem; bottom: 5.3rem; z-index: 80;
|
||||
min-width: 11rem; padding: 0.4rem; border: 1px solid var(--border-light); border-radius: 8px;
|
||||
background: var(--card-bg); box-shadow: 0 10px 28px rgba(0,0,0,.3);
|
||||
}
|
||||
.mobile-more-menu.is-open { display: grid; }
|
||||
.mobile-more-menu button { text-align: left; }
|
||||
.decoder-state-dot { display: inline-block; width: 0.48rem; height: 0.48rem; margin-left: 0.35rem; border-radius: 50%; background: var(--text-muted); vertical-align: middle; }
|
||||
.decoder-state-dot[data-state="active"] { background: var(--accent-green); box-shadow: 0 0 0.35rem color-mix(in srgb, var(--accent-green) 65%, transparent); }
|
||||
.decoder-state-dot[data-state="error"] { background: var(--accent-red); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
|
||||
}
|
||||
|
||||
/* ── Scrollbars ───────────────────────────────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
@@ -2953,7 +3008,7 @@ canvas:focus-visible, [tabindex]:focus-visible {
|
||||
bottom: calc(0.55rem + env(safe-area-inset-bottom));
|
||||
z-index: 30;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 0.25rem;
|
||||
padding: 0.38rem;
|
||||
border: 1px solid color-mix(in srgb, var(--border-light) 82%, transparent);
|
||||
@@ -2993,6 +3048,16 @@ canvas:focus-visible, [tabindex]:focus-visible {
|
||||
.tab[data-tab="bookmarks"] .tab-label { font-size: 0.6rem; }
|
||||
.tab[data-tab="digital-modes"] .tab-label { font-size: 0.6rem; }
|
||||
.tab[data-tab="statistics"] .tab-label { font-size: 0.6rem; }
|
||||
.tab[data-tab="statistics"], .tab[data-tab="recorder"],
|
||||
.tab[data-tab="settings"], .tab[data-tab="about"] { display: none; }
|
||||
.mobile-more-btn { display: flex; }
|
||||
.tab .tab-label, .tab[data-tab] .tab-label { font-size: 0.75rem; }
|
||||
.decoder-tab-select {
|
||||
display: block; width: 100%; min-height: 2.8rem; margin-bottom: 0.7rem;
|
||||
border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); color: var(--text); font-size: 1rem;
|
||||
}
|
||||
#tab-digital-modes > .sub-tab-bar { display: none; }
|
||||
.toast-region { bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
|
||||
.top-bar-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
@@ -3910,6 +3975,15 @@ canvas:focus-visible, [tabindex]:focus-visible {
|
||||
}
|
||||
}
|
||||
|
||||
/* Preserve legibility after the component-specific compact-mobile rules. */
|
||||
@media (max-width: 640px) {
|
||||
button, input, select, textarea, .tab-label, .sub-tab,
|
||||
.label, .hint, .subtitle, .wfm-control-label, .wfm-intf-val,
|
||||
.ft8-header, .ft8-message, .aprs-packet, .ais-message, .vdes-message {
|
||||
font-size: max(0.75rem, 12px);
|
||||
}
|
||||
}
|
||||
|
||||
/* Theme styles have been moved to themes.css */
|
||||
|
||||
|
||||
@@ -5061,3 +5135,11 @@ canvas:focus-visible, [tabindex]:focus-visible {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
button, input, select, textarea, .tab-label, .sub-tab,
|
||||
.label, .hint, .subtitle, .wfm-control-label, .wfm-intf-val,
|
||||
.ft8-header, .ft8-message, .aprs-packet, .ais-message, .vdes-message {
|
||||
font-size: max(0.75rem, 12px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user