diff --git a/src/lib/client/ui/form/NumberInput.svelte b/src/lib/client/ui/form/NumberInput.svelte index 1c83aac..3cd2a1c 100644 --- a/src/lib/client/ui/form/NumberInput.svelte +++ b/src/lib/client/ui/form/NumberInput.svelte @@ -44,9 +44,12 @@ } $: isCompact = compact || (responsive && isSmallScreen); + $: hideButtons = responsive && isSmallScreen; $: fontClass = font === 'mono' ? 'font-mono' : font === 'sans' ? 'font-sans' : ''; $: inputSizeClasses = isCompact - ? 'rounded px-2 py-1 pr-7 text-xs' + ? hideButtons + ? 'rounded px-2 py-1 text-xs' + : 'rounded px-2 py-1 pr-7 text-xs' : 'rounded-lg px-3 py-2 pr-10'; $: buttonSizeClasses = isCompact ? 'h-2.5 w-4' : 'h-4 w-6'; $: iconSize = isCompact ? 10 : 12; @@ -121,23 +124,25 @@ class="block w-full [appearance:textfield] border border-neutral-300 bg-white text-neutral-900 placeholder-neutral-400 focus:outline-none disabled:bg-neutral-100 disabled:text-neutral-500 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-50 dark:placeholder-neutral-500 dark:disabled:bg-neutral-900 dark:disabled:text-neutral-600 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none {inputSizeClasses} {fontClass}" /> - -
{description}