This commit is contained in:
Classic298 2026-11-05 17:32:20 -05:00 • committed by GitHub
commit 74cf0d6b74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}