This commit is contained in:
Timothy Jaeryang Baek committed 2026-11-20 14:43:49 +04:00
1 parent 2f70a0248a
commit 76339161b0
469 files changed
+4845 -4822

No files matched your search

@@ -51,7 +51,7 @@
aria-expanded={show}
class="grid w-full grid-cols-[7rem_minmax(0,1fr)_auto] items-center gap-2 rounded-md px-1 py-1.5 text-left text-xs font-normal disabled:cursor-default sm:grid-cols-[8rem_minmax(0,1fr)_auto]"
>
<span class="text-gray-600 dark:text-gray-400"
<span class="text-base-600 dark:text-base-400"
><ModelSettingsLabel
label={$i18n.t('Default image model')}
description={$i18n.t(
@@ -59,26 +59,26 @@
)}
/></span
>
<span bind:this={valueElement} class="min-w-0 truncate text-gray-900 dark:text-gray-100"
<span bind:this={valueElement} class="min-w-0 truncate text-base-900 dark:text-base-100"
>{selectedLabel}</span
>
<ChevronRight className="size-3 text-gray-400" />
<ChevronRight className="size-3 text-base-400" />
</button>
<div slot="content">
<div
class="flex max-h-64 w-56 max-w-[calc(100vw-2rem)] flex-col gap-0.5 overflow-y-auto rounded-xl border border-gray-200 bg-white p-1 text-gray-900 shadow-lg dark:border-gray-800 dark:bg-gray-850 dark:text-gray-100"
class="flex max-h-64 w-56 max-w-[calc(100vw-2rem)] flex-col gap-0.5 overflow-y-auto rounded-xl border border-base-200 bg-white p-1 text-base-900 shadow-lg dark:border-base-800 dark:bg-base-850 dark:text-base-100"
>
{#each items as item (item.value)}
<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"
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-base-50 dark:hover:bg-base-800"
aria-pressed={item.value === imageModelId}
on:click={() => select(item.value)}
>
<span class="min-w-0 flex-1 truncate">{item.label}</span>
{#if item.value === imageModelId}<Check
className="size-3.5 shrink-0 text-gray-500 dark:text-gray-400"
className="size-3.5 shrink-0 text-base-500 dark:text-base-400"
/>{/if}
</button>
{/each}