Skip to content

Commit

Permalink
remove w-full on form toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Aug 26, 2024
1 parent 1ec45e5 commit 61a7093
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions frontend/src/lib/components/LightweightArgInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,9 @@
dispatch('focus')
}}
type="number"
class={twMerge(
valid && error == ''
? ''
: 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30'
)}
class={valid && error == ''
? ''
: 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30'}
placeholder={placeholder ?? defaultValue ?? ''}
bind:value
min={extra['min']}
Expand All @@ -293,12 +291,9 @@
on:pointerdown={(e) => {
e?.stopPropagation()
}}
class={twMerge(
valid && error == ''
? ''
: 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30',
'w-full'
)}
class={valid && error == ''
? ''
: 'border !border-red-700 !border-opacity-70 focus:!border-red-700 focus:!border-opacity-30'}
bind:checked={value}
/>
{#if type == 'boolean' && value == undefined}
Expand Down

0 comments on commit 61a7093

Please sign in to comment.