chore: fix wrong change on togglebuttongroup display #6541

This commit is contained in:
centdix
2025-09-05 11:41:46 +00:00
committed by GitHub
parent e48f2533fc
commit bbcb488769
2 changed files with 5 additions and 2 deletions
@@ -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
)}
>