fix: align weight range -10/10/0.01 across BarInput defaults, MixCard and StyleMixerPanel
This commit is contained in:
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user