refac/enh: model suggestion tooltip

This commit is contained in:
Timothy Jaeryang Baek 2025-09-12 23:36:40 +04:00
parent 3e1b14f570
commit c55f557828

View file

@ -6,6 +6,7 @@
import { models } from '$lib/stores';
import { WEBUI_BASE_URL } from '$lib/constants';
import Tooltip from '$lib/components/common/Tooltip.svelte';
const i18n = getContext('i18n');
@ -65,6 +66,7 @@
{#if filteredItems.length > 0}
{#each filteredItems as model, modelIdx}
<Tooltip content={model.id} placement="top-start">
<button
class="px-2.5 py-1.5 rounded-xl w-full text-left {modelIdx === selectedIdx
? 'bg-gray-50 dark:bg-gray-800 selected-command-option-button'
@ -90,5 +92,6 @@
</div>
</div>
</button>
</Tooltip>
{/each}
{/if}