fix: make slider step a compact inline row instead of prominent section

This commit is contained in:
Jannis Braun
2026-03-22 01:25:03 +01:00
parent 30cbf58770
commit eff3210f29
@@ -240,26 +240,22 @@ export function StreamingPanel() {
</div> </div>
</div> </div>
{/* Bitrate Step */} {/* Bitrate Step — compact inline row */}
<div> <div className="flex items-center gap-2 pt-1 border-t border-white/[0.04]">
<div className="text-xs text-txt-secondary mb-1.5"> <span className="text-[11px] text-txt-tertiary">Slider step</span>
Slider Step <input
</div> type="number"
<div className="flex items-center gap-2"> min={50}
<input max={5000}
type="number" step={50}
min={50} value={draft.bitrateStepKbps}
max={5000} onChange={(e) => {
step={50} const v = Number(e.target.value);
value={draft.bitrateStepKbps} if (v >= 50 && v <= 5000) setDraft({ ...draft, bitrateStepKbps: v });
onChange={(e) => { }}
const v = Number(e.target.value); className="input-standard w-16 px-1.5 py-0.5 text-xs text-center"
if (v >= 50 && v <= 5000) setDraft({ ...draft, bitrateStepKbps: v }); />
}} <span className="text-[11px] text-txt-tertiary">kbps</span>
className="input-standard w-24 px-2 py-1"
/>
<span className="text-[12px] text-txt-tertiary">kbps</span>
</div>
</div> </div>
</div> </div>
</div> </div>