feat: double-click knobs to type exact values
Double-clicking a knob opens an inline text input for precise value entry. Enter confirms, Escape cancels, blur auto-commits. Value is clamped to the knob's min/max range. Styled to match the synth theme. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -168,6 +168,15 @@ html, body, #root {
|
||||
.knob-fill { fill: none; stroke-width: 3; stroke-linecap: round; }
|
||||
.knob-dot { fill: var(--text); }
|
||||
|
||||
.knob-editing { display: flex; align-items: center; justify-content: center; }
|
||||
.knob-input {
|
||||
width: 48px; height: 22px; padding: 0 4px;
|
||||
background: var(--bg); border: 1px solid var(--accent); border-radius: 3px;
|
||||
color: var(--accent); font-size: 11px; font-family: 'JetBrains Mono', monospace;
|
||||
text-align: center; outline: none;
|
||||
}
|
||||
.knob-input:focus { box-shadow: 0 0 6px rgba(0,229,255,0.3); }
|
||||
|
||||
.param-value {
|
||||
font-size: 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace;
|
||||
min-width: 40px; text-align: right;
|
||||
|
||||
Reference in New Issue
Block a user