mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 19:17:56 -05:00
refac
This commit is contained in:
1 parent
2f70a0248a
commit
76339161b0
469 files changed
+4845
-4822
No files matched your search
@@ -351,13 +351,13 @@
|
||||
</script>
|
||||
|
||||
{#if tab === ''}
|
||||
<div class="h-px mx-1 my-1 bg-gray-100 dark:bg-gray-800"></div>
|
||||
<div class="h-px mx-1 my-1 bg-base-100 dark:bg-base-800"></div>
|
||||
<div in:fly={{ x: -20, duration: 150 }}>
|
||||
{#if tools}
|
||||
{#if Object.keys(tools).length > 0}
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
tab = 'tools';
|
||||
}}
|
||||
@@ -367,10 +367,10 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div class=" line-clamp-1">
|
||||
{$i18n.t('Tools')}
|
||||
<span class="ml-0.5 text-gray-500">{Object.keys(tools).length}</span>
|
||||
<span class="ml-0.5 text-base-500">{Object.keys(tools).length}</span>
|
||||
</div>
|
||||
|
||||
<div class="flex shrink-0 items-center gap-2 text-gray-500">
|
||||
<div class="flex shrink-0 items-center gap-2 text-base-500">
|
||||
{#if selectedToolIds.length > 0}
|
||||
<span class="text-xs">
|
||||
{$i18n.t('{{COUNT}} selected', { COUNT: selectedToolIds.length })}
|
||||
@@ -385,7 +385,7 @@
|
||||
{#if skills && Object.keys(skills).length > 0}
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
tab = 'skills';
|
||||
}}
|
||||
@@ -395,10 +395,10 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div class=" line-clamp-1">
|
||||
{$i18n.t('Skills')}
|
||||
<span class="ml-0.5 text-gray-500">{Object.keys(skills).length}</span>
|
||||
<span class="ml-0.5 text-base-500">{Object.keys(skills).length}</span>
|
||||
</div>
|
||||
|
||||
<div class="flex shrink-0 items-center gap-2 text-gray-500">
|
||||
<div class="flex shrink-0 items-center gap-2 text-base-500">
|
||||
{#if selectedSkillIds.length > 0}
|
||||
<span class="text-xs">
|
||||
{$i18n.t('{{COUNT}} selected', { COUNT: selectedSkillIds.length })}
|
||||
@@ -427,7 +427,7 @@
|
||||
placement="top-start"
|
||||
>
|
||||
<div
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
role="presentation"
|
||||
on:click={() => {
|
||||
if (selectedFilterIds.includes(filter.id)) {
|
||||
@@ -472,7 +472,7 @@
|
||||
<Tooltip content={$i18n.t('Valves')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Valves')}
|
||||
class="self-center w-fit text-sm text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition rounded-full"
|
||||
class="self-center w-fit text-sm text-base-600 dark:text-base-400 hover:text-base-700 dark:hover:text-base-300 transition rounded-full"
|
||||
type="button"
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -500,7 +500,7 @@
|
||||
{#if showImageGenerationButton}
|
||||
<Tooltip content={$i18n.t('Generate an image')} placement="top-start">
|
||||
<div
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
role="presentation"
|
||||
on:click={() => {
|
||||
imageGenerationEnabled = !imageGenerationEnabled;
|
||||
@@ -520,7 +520,7 @@
|
||||
<div class=" truncate">
|
||||
{$i18n.t('Image')}
|
||||
{#if imageModelOptions.length > 1}
|
||||
<span class="ml-0.5 text-xs text-gray-500">
|
||||
<span class="ml-0.5 text-xs text-base-500">
|
||||
{selectedImageModel?.name ?? $i18n.t('Default')}
|
||||
</span>
|
||||
{/if}
|
||||
@@ -533,7 +533,7 @@
|
||||
<button
|
||||
type="button"
|
||||
role="menuitem"
|
||||
class="flex items-center text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
|
||||
class="flex items-center text-base-500 hover:text-base-700 dark:hover:text-base-300 transition"
|
||||
aria-label={$i18n.t('Choose image model')}
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -555,7 +555,7 @@
|
||||
{#if showVideoGenerationButton}
|
||||
<Tooltip content={$i18n.t('Generate a video')} placement="top-start">
|
||||
<div
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
role="presentation"
|
||||
on:click={() => {
|
||||
videoGenerationEnabled = !videoGenerationEnabled;
|
||||
@@ -575,7 +575,7 @@
|
||||
<div class=" truncate">
|
||||
{$i18n.t('Video')}
|
||||
{#if videoModelOptions.length > 1}
|
||||
<span class="ml-0.5 text-xs text-gray-500">
|
||||
<span class="ml-0.5 text-xs text-base-500">
|
||||
{selectedVideoModel?.name ?? $i18n.t('Default')}
|
||||
</span>
|
||||
{/if}
|
||||
@@ -588,7 +588,7 @@
|
||||
<button
|
||||
type="button"
|
||||
role="menuitem"
|
||||
class="flex items-center text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition"
|
||||
class="flex items-center text-base-500 hover:text-base-700 dark:hover:text-base-300 transition"
|
||||
aria-label={$i18n.t('Choose video model')}
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -610,7 +610,7 @@
|
||||
{#if showWebSearchButton}
|
||||
<Tooltip content={$i18n.t('Search the internet')} placement="top-start">
|
||||
<button
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
role="menuitemcheckbox"
|
||||
aria-checked={webSearchEnabled}
|
||||
on:click={() => {
|
||||
@@ -642,7 +642,7 @@
|
||||
{#if showCodeInterpreterButton}
|
||||
<Tooltip content={$i18n.t('Execute code for analysis')} placement="top-start">
|
||||
<button
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
role="menuitemcheckbox"
|
||||
aria-checked={codeInterpreterEnabled}
|
||||
on:click={() => {
|
||||
@@ -670,7 +670,7 @@
|
||||
<div class="flex min-h-0 flex-col gap-0.5 overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
toolQuery = '';
|
||||
tab = '';
|
||||
@@ -681,7 +681,7 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div>
|
||||
{$i18n.t('Tools')}
|
||||
<span class="ml-0.5 text-gray-500">{toolIds.length}</span>
|
||||
<span class="ml-0.5 text-base-500">{toolIds.length}</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
@@ -690,18 +690,18 @@
|
||||
|
||||
<div class="min-h-0 flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin">
|
||||
{#if toolIds.length === 0}
|
||||
<div class="text-center text-xs text-gray-500 py-3">{$i18n.t('No tools found')}</div>
|
||||
<div class="text-center text-xs text-base-500 py-3">{$i18n.t('No tools found')}</div>
|
||||
{:else}
|
||||
<div class="flex flex-col gap-0.5">
|
||||
{#each toolGroups as [label, ids]}
|
||||
{#if toolGroups.length > 1}
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-gray-400 dark:text-gray-500">
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500">
|
||||
{label}
|
||||
</div>
|
||||
{/if}
|
||||
{#each ids as toolId}
|
||||
<div
|
||||
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40 has-[[role^=menuitem]:focus-visible]:outline-2 has-[[role^=menuitem]:focus-visible]:-outline-offset-2 has-[[role^=menuitem]:focus-visible]:outline-blue-500"
|
||||
role="presentation"
|
||||
on:click={async (e) => {
|
||||
await toggleTool(toolId, e);
|
||||
@@ -748,7 +748,7 @@
|
||||
<Tooltip content={$i18n.t('Disconnect OAuth')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Disconnect OAuth')}
|
||||
class="self-center w-fit text-sm text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition rounded-full"
|
||||
class="self-center w-fit text-sm text-base-600 dark:text-base-400 hover:text-base-700 dark:hover:text-base-300 transition rounded-full"
|
||||
type="button"
|
||||
on:click={async (e) => {
|
||||
e.stopPropagation();
|
||||
@@ -782,7 +782,7 @@
|
||||
<Tooltip content={$i18n.t('Valves')}>
|
||||
<button
|
||||
aria-label={$i18n.t('Valves')}
|
||||
class="self-center w-fit text-sm text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition rounded-full"
|
||||
class="self-center w-fit text-sm text-base-600 dark:text-base-400 hover:text-base-700 dark:hover:text-base-300 transition rounded-full"
|
||||
type="button"
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
@@ -813,7 +813,7 @@
|
||||
<div class="flex min-h-0 flex-col gap-0.5 overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
skillQuery = '';
|
||||
tab = '';
|
||||
@@ -824,7 +824,7 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div>
|
||||
{$i18n.t('Skills')}
|
||||
<span class="ml-0.5 text-gray-500">{skillIds.length}</span>
|
||||
<span class="ml-0.5 text-base-500">{skillIds.length}</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
@@ -833,18 +833,18 @@
|
||||
|
||||
<div class="min-h-0 flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin">
|
||||
{#if skillIds.length === 0}
|
||||
<div class="text-center text-xs text-gray-500 py-3">{$i18n.t('No skills found')}</div>
|
||||
<div class="text-center text-xs text-base-500 py-3">{$i18n.t('No skills found')}</div>
|
||||
{:else}
|
||||
<div class="flex flex-col gap-0.5">
|
||||
{#each skillGroups as [label, ids]}
|
||||
{#if skillGroups.length > 1 || skills?.[ids[0]]?.source === 'terminal'}
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-gray-400 dark:text-gray-500">
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500">
|
||||
{label}
|
||||
</div>
|
||||
{/if}
|
||||
{#each ids as skillId}
|
||||
<button
|
||||
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="relative flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
role="menuitemcheckbox"
|
||||
aria-checked={selectedSkillIds.includes(skillId)}
|
||||
on:click={async () => {
|
||||
@@ -890,7 +890,7 @@
|
||||
<div class="flex min-h-0 flex-col gap-0.5 overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
imageModelQuery = '';
|
||||
tab = '';
|
||||
@@ -901,7 +901,7 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div>
|
||||
{$i18n.t('Image model')}
|
||||
<span class="ml-0.5 text-gray-500">{imageModelOptions.length}</span>
|
||||
<span class="ml-0.5 text-base-500">{imageModelOptions.length}</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
@@ -917,7 +917,7 @@
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={!selectedImageModelId}
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
selectedImageModelId = '';
|
||||
imageGenerationEnabled = true;
|
||||
@@ -933,7 +933,7 @@
|
||||
|
||||
{#each imageModelGroups as [label, models] (label)}
|
||||
{#if imageModelGroups.length > 1}
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-gray-400 dark:text-gray-500">
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500">
|
||||
{label}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -943,7 +943,7 @@
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={selectedImageModelId === model.id}
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
selectedImageModelId = model.id;
|
||||
imageGenerationEnabled = true;
|
||||
@@ -953,7 +953,7 @@
|
||||
>
|
||||
<div class="flex min-w-0 items-center gap-2">
|
||||
<div class="truncate">{model.name}</div>
|
||||
<div class="shrink-0 text-xs text-gray-400 dark:text-gray-500">
|
||||
<div class="shrink-0 text-xs text-base-400 dark:text-base-500">
|
||||
{#if model.image_generation && model.image_edit}
|
||||
{$i18n.t('Generate and edit')}
|
||||
{:else if model.image_edit}
|
||||
@@ -968,7 +968,7 @@
|
||||
</button>
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="text-center text-xs text-gray-500 py-3">
|
||||
<div class="text-center text-xs text-base-500 py-3">
|
||||
{$i18n.t('No image models found')}
|
||||
</div>
|
||||
{/each}
|
||||
@@ -979,7 +979,7 @@
|
||||
<div class="flex min-h-0 flex-col gap-0.5 overflow-hidden" in:fly={{ x: 20, duration: 150 }}>
|
||||
<button
|
||||
role="menuitem"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full shrink-0 justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
videoModelQuery = '';
|
||||
tab = '';
|
||||
@@ -990,7 +990,7 @@
|
||||
<div class="flex items-center w-full justify-between">
|
||||
<div>
|
||||
{$i18n.t('Video model')}
|
||||
<span class="ml-0.5 text-gray-500">{videoModelOptions.length}</span>
|
||||
<span class="ml-0.5 text-base-500">{videoModelOptions.length}</span>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
@@ -1006,7 +1006,7 @@
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={!selectedVideoModelId}
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
selectedVideoModelId = '';
|
||||
videoGenerationEnabled = true;
|
||||
@@ -1022,7 +1022,7 @@
|
||||
|
||||
{#each videoModelGroups as [label, models] (label)}
|
||||
{#if videoModelGroups.length > 1}
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-gray-400 dark:text-gray-500">
|
||||
<div class="truncate px-2 pt-1.5 pb-0.5 text-xs text-base-400 dark:text-base-500">
|
||||
{label}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1032,7 +1032,7 @@
|
||||
type="button"
|
||||
role="menuitemradio"
|
||||
aria-checked={selectedVideoModelId === model.id}
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
class="flex w-full justify-between gap-2 items-center h-[1.6875rem] px-2 text-[0.8125rem] font-normal cursor-pointer rounded-xl hover:bg-base-50/40 dark:hover:bg-base-800/40"
|
||||
on:click={() => {
|
||||
selectedVideoModelId = model.id;
|
||||
videoGenerationEnabled = true;
|
||||
@@ -1050,7 +1050,7 @@
|
||||
</button>
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="text-center text-xs text-gray-500 py-3">
|
||||
<div class="text-center text-xs text-base-500 py-3">
|
||||
{$i18n.t('No video models found')}
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
Reference in new issue
Block a user