mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac/enh: sort toggle filter by default
This commit is contained in:
parent
a68342d5a8
commit
ca853ca465
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@
|
|||
transition={flyAndScale}
|
||||
>
|
||||
{#if toggleFilters && toggleFilters.length > 0}
|
||||
{#each toggleFilters as filter, filterIdx (filter.id)}
|
||||
{#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)}
|
||||
<Tooltip content={filter?.description} placement="top">
|
||||
<button
|
||||
class="flex w-full justify-between gap-2 items-center px-3 py-2 text-sm font-medium cursor-pointer rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800"
|
||||
|
|
|
|||
Loading…
Reference in a new issue