feat(ComboControlV2): hide input when control is reduced
This commit is contained in:
@@ -150,6 +150,7 @@ function calculateScale(index: number): number | string {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if !reduced}
|
||||||
<Input
|
<Input
|
||||||
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"
|
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"
|
||||||
value={inputValue}
|
value={inputValue}
|
||||||
@@ -160,6 +161,7 @@ function calculateScale(index: number): number | string {
|
|||||||
pattern={REGEXP_ONLY_DIGITS}
|
pattern={REGEXP_ONLY_DIGITS}
|
||||||
variant="ghost"
|
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">
|
||||||
|
|||||||
Reference in New Issue
Block a user