mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
Merge f0a54b5dc0 into a715f569d1
This commit is contained in:
commit
74cf0d6b74
1 changed files with 15 additions and 3 deletions
|
|
@ -184,6 +184,11 @@
|
|||
</div>
|
||||
{:else}
|
||||
{#each sortedItems as item (item.id)}
|
||||
{@const itemDescription = resolveLocalizedResource(
|
||||
item,
|
||||
$i18n.language,
|
||||
'description'
|
||||
)}
|
||||
<button
|
||||
type="button"
|
||||
class="flex min-h-7 w-full items-center justify-between gap-2 rounded-xl px-2 py-1 text-left text-xs hover:bg-gray-50 dark:hover:bg-gray-800 selected-command-option-button"
|
||||
|
|
@ -193,9 +198,16 @@
|
|||
selectItem(item);
|
||||
}}
|
||||
>
|
||||
<span class="min-w-0 flex-1 truncate"
|
||||
>{resolveLocalizedResource(item, $i18n.language)}</span
|
||||
>
|
||||
<span class="min-w-0 flex-1">
|
||||
<span class="block truncate"
|
||||
>{resolveLocalizedResource(item, $i18n.language)}</span
|
||||
>
|
||||
{#if itemDescription}
|
||||
<span class="block truncate text-gray-500 dark:text-gray-400"
|
||||
>{itemDescription}</span
|
||||
>
|
||||
{/if}
|
||||
</span>
|
||||
{#if item.is_global}<span class="text-[0.6875rem] text-gray-500"
|
||||
>{$i18n.t('Global')}</span
|
||||
>{/if}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue