This commit is contained in:
Timothy Jaeryang Baek 2025-09-13 18:39:32 +04:00
parent 5c2db102d0
commit 02f7c3258b

View file

@ -3,6 +3,7 @@
const i18n = getContext('i18n'); const i18n = getContext('i18n');
import { models } from '$lib/stores'; import { models } from '$lib/stores';
import Tooltip from '$lib/components/common/Tooltip.svelte';
export let query = ''; export let query = '';
export let command: (payload: { id: string; label: string }) => void; export let command: (payload: { id: string; label: string }) => void;
@ -60,6 +61,7 @@
{$i18n.t('Models')} {$i18n.t('Models')}
</div> </div>
{#each filteredItems as item, i} {#each filteredItems as item, i}
<Tooltip content={item?.id} placement="top-start">
<button <button
type="button" type="button"
on:click={() => select(i)} on:click={() => select(i)}
@ -75,6 +77,7 @@
@{item.name} @{item.name}
</div> </div>
</button> </button>
</Tooltip>
{/each} {/each}
</div> </div>
</div> </div>