From f6bc46dd9884100a80554d0ff8ae7c150a238045 Mon Sep 17 00:00:00 2001 From: LucasDLTG Date: Sun, 13 Sep 2026 10:06:48 +0200 Subject: [PATCH] fix; compressoor steppers --- .../ChoiceStepper/ChoiceStepper.css | 4 --- .../ChoiceStepper/ChoiceStepper.tsx | 10 ++++-- .../CompressorSection/CompressorSection.css | 21 ++++++++++++ .../CompressorSection/CompressorSection.tsx | 34 ++++++++++--------- 4 files changed, 47 insertions(+), 22 deletions(-) diff --git a/src/components/ChoiceStepper/ChoiceStepper.css b/src/components/ChoiceStepper/ChoiceStepper.css index c39e6e8..43fb96f 100644 --- a/src/components/ChoiceStepper/ChoiceStepper.css +++ b/src/components/ChoiceStepper/ChoiceStepper.css @@ -5,7 +5,6 @@ position: relative; display: flex; align-items: stretch; - justify-content: center; border: var(--border-width) solid var(--border-hairline); border-radius: var(--radius-sm); @@ -23,7 +22,6 @@ text-align: left; color: var(--accent-brand); - background: transparent; border: none; @@ -44,7 +42,6 @@ justify-content: center; height: 100%; - box-sizing: border-box; padding-right: 1%; @@ -52,7 +49,6 @@ .choice-stepper__arrow-btn { height: 50%; - min-width: 0; min-height: 0; diff --git a/src/components/ChoiceStepper/ChoiceStepper.tsx b/src/components/ChoiceStepper/ChoiceStepper.tsx index fd44ca3..af3f34a 100644 --- a/src/components/ChoiceStepper/ChoiceStepper.tsx +++ b/src/components/ChoiceStepper/ChoiceStepper.tsx @@ -87,7 +87,10 @@ function ChoiceStepperList({ }; return ( -
+
+
RATIO_LABEL[v]} - onChange={(value) => { - onLiveValue(channel, 'ratio', value); - commit({ ratio: value }); - }} - /> + className="compressor-panel__stepper compressor-panel__stepper--centered" + value={comp.ratio} + values={RATIO_ORDER} + formatLabel={(v) => RATIO_LABEL[v]} + onChange={(value) => { + onLiveValue(channel, 'ratio', value); + commit({ ratio: value }); + }} +/>
Ratio
`${v} dB`} - onChange={(value) => { - onLiveValue(channel, 'knee', value); - commit({ knee: value }); - }} - /> + className="compressor-panel__stepper compressor-panel__stepper--centered" + value={comp.knee} + values={KNEE_VALUES} + formatLabel={(v) => `${v} dB`} + onChange={(value) => { + onLiveValue(channel, 'knee', value); + commit({ knee: value }); + }} +/>
Knee