mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 08:02:18 +00:00
chore: fix wrong change on togglebuttongroup display #6541
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
<div class="w-full flex flex-col gap-3">
|
||||
<!-- Provider Selection -->
|
||||
<div class="flex flex-col gap-2">
|
||||
<ToggleButtonGroup selected={value?.kind} onSelected={onProviderChange} {disabled}>
|
||||
<ToggleButtonGroup selected={value?.kind} onSelected={onProviderChange} {disabled} wrap>
|
||||
{#snippet children({ item })}
|
||||
{#each providerOptions as option}
|
||||
<ToggleButton value={option.value} label={option.label} {item} />
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
tabListClass?: string
|
||||
allowEmpty?: boolean
|
||||
class?: string
|
||||
wrap?: boolean
|
||||
children?: import('svelte').Snippet<[any]>
|
||||
onSelected?: (value: any) => void
|
||||
}
|
||||
@@ -26,6 +27,7 @@
|
||||
tabListClass = '',
|
||||
allowEmpty = false,
|
||||
class: className = '',
|
||||
wrap = false,
|
||||
onSelected,
|
||||
children
|
||||
}: Props = $props()
|
||||
@@ -70,7 +72,8 @@
|
||||
>
|
||||
<div
|
||||
class={twMerge(
|
||||
'flex bg-surface-secondary rounded-md p-0.5 gap-1 h-full flex-wrap',
|
||||
'flex bg-surface-secondary rounded-md p-0.5 gap-1 h-full',
|
||||
wrap ? 'flex-wrap' : '',
|
||||
tabListClass
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user