feat(ComboControlV2): hide input when control is reduced

This commit is contained in:
Ilia Mashkov
2026-02-15 23:05:58 +03:00
parent 8780b6932c
commit 72334a3d05

View File

@@ -150,16 +150,18 @@ function calculateScale(index: number): number | string {
/> />
</div> </div>
<Input {#if !reduced}
class="h-10 rounded-lg w-12 pl-1 pr-1 sm:pr-1 md:pr-1 sm:pl-1 md:pl-1 text-center" <Input
value={inputValue} class="h-10 rounded-lg w-12 pl-1 pr-1 sm:pr-1 md:pr-1 sm:pl-1 md:pl-1 text-center"
onchange={handleInputChange} value={inputValue}
min={control.min} onchange={handleInputChange}
max={control.max} min={control.min}
step={control.step} max={control.max}
pattern={REGEXP_ONLY_DIGITS} step={control.step}
variant="ghost" pattern={REGEXP_ONLY_DIGITS}
/> variant="ghost"
/>
{/if}
{#if label} {#if label}
<div class="flex items-center gap-2 opacity-70"> <div class="flex items-center gap-2 opacity-70">