Max level: confirm typed values above the limit, cleaner limit display

- typing a gain above the max level shows the limit and a warning; Apply has to be
  clicked twice ("Set anyway"), the forced value also passes the server's lock
- sliders and faders show the locked range as a subtle striped zone in the track with a
  stop edge at the limit, behind the knob (no more line drawn over the knob)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 23:37:40 +01:00
1 parent 52695d20a5
commit 06bc767f2c
4 files changed
+72 -26

No files matched your search

+18 -6
View File
@@ -686,12 +686,24 @@ button.devadd .plus svg { width: 32px; height: 32px; fill: none; stroke: current
.scanrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--panel2); }
.scanrow small { display: block; color: var(--dim); font-size: 12px; }
/* ---- software max level */
.fader .limmark { position: absolute; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 2px; background: var(--bad);
box-shadow: 0 0 6px #ef4444aa; bottom: calc(12px + var(--f) * (100% - 24px)); transform: translateY(50%); pointer-events: none; z-index: 1; }
.rangewrap { position: relative; }
.rangewrap .limmark { position: absolute; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--bad);
left: calc(13px + var(--f) * (100% - 26px)); transform: translateX(-50%); pointer-events: none; z-index: 1; }
/* ---- software max level: a striped "locked" zone in the track above the limit, behind the knob */
:root { --limstripe: repeating-linear-gradient(-45deg, #ef444466 0 3px, #ef444414 3px 6px); }
input[type=range].haslim { --p: calc(13px + var(--lim) * (100% - 26px)); }
input[type=range].haslim::-webkit-slider-runnable-track {
background: linear-gradient(90deg, var(--line) 0 var(--p), #f87171 var(--p) calc(var(--p) + 2px), transparent calc(var(--p) + 2px)),
var(--limstripe) var(--line); }
input[type=range].haslim::-moz-range-track {
background: linear-gradient(90deg, var(--line) 0 var(--p), #f87171 var(--p) calc(var(--p) + 2px), transparent calc(var(--p) + 2px)),
var(--limstripe) var(--line); }
.fader .limzone { position: absolute; left: var(--tx); width: 10px; margin-left: -5px; top: 12px; border-radius: 5px 5px 2px 2px;
height: calc((1 - var(--f)) * (100% - 24px)); background: var(--limstripe); pointer-events: none; z-index: 0; }
.fader .limzone::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -1px; height: 2px; border-radius: 1px;
background: #f87171; box-shadow: 0 0 6px #ef444488; }
.limnote { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.limnote svg, .overlim svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.overlim { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px;
color: #fecaca; background: #ef44441f; border: 1px solid #ef444466; }
.overlim[hidden] { display: none; }
.mlrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 84px; align-items: center; gap: 10px; margin-top: 8px; }
.mllabel { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.mlval { font-size: 12px; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }