fix: align weight range -10/10/0.01 across BarInput defaults, MixCard and StyleMixerPanel

This commit is contained in:
Immac
2026-03-03 11:04:07 -06:00
parent 0d72f37ac3
commit daf2aec27b
5 changed files with 13 additions and 13 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -27,9 +27,9 @@ interface Props {
export default function BarInput({
value,
onChange,
min = 0,
max = 1,
step = 0.05,
min = -10,
max = 10,
step = 0.01,
pixelsPerStep = 2,
width = 72,
decimals = 2,
+3 -3
View File
@@ -359,9 +359,9 @@ export default function MixCard({ mix, styles, isActive, isDirty, onActivate, on
<BarInput
value={entry.weight}
onChange={(v) => updateEntry(i, { weight: v })}
min={0}
max={1}
step={0.05}
min={-10}
max={10}
step={0.01}
width={64}
/>
+3 -3
View File
@@ -291,9 +291,9 @@ export default function StyleMixerPanel() {
<BarInput
value={entry.weight}
onChange={(v) => updateCurrentMixEntry(entry.style_id, { weight: v }, { silent: true })}
min={0}
max={1}
step={0.05}
min={-10}
max={10}
step={0.01}
width="100%"
/>
</div>