mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac
This commit is contained in:
parent
d1be1de013
commit
2573882b88
@ -649,36 +649,38 @@
|
|||||||
<div class="pt-1.5">
|
<div class="pt-1.5">
|
||||||
{#each $settings.pinnedModels as modelId (modelId)}
|
{#each $settings.pinnedModels as modelId (modelId)}
|
||||||
{@const model = $models.find((model) => model.id === modelId)}
|
{@const model = $models.find((model) => model.id === modelId)}
|
||||||
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
|
{#if model}
|
||||||
<a
|
<div class="px-1.5 flex justify-center text-gray-800 dark:text-gray-200">
|
||||||
class="grow flex items-center space-x-2.5 rounded-lg px-2 py-[7px] hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
<a
|
||||||
href="/?model={modelId}"
|
class="grow flex items-center space-x-2.5 rounded-lg px-2 py-[7px] hover:bg-gray-100 dark:hover:bg-gray-900 transition"
|
||||||
on:click={() => {
|
href="/?model={modelId}"
|
||||||
selectedChatId = null;
|
on:click={() => {
|
||||||
chatId.set('');
|
selectedChatId = null;
|
||||||
|
chatId.set('');
|
||||||
|
|
||||||
if ($mobile) {
|
if ($mobile) {
|
||||||
showSidebar.set(false);
|
showSidebar.set(false);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
draggable="false"
|
draggable="false"
|
||||||
>
|
>
|
||||||
<div class="self-center">
|
<div class="self-center">
|
||||||
<img
|
<img
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
src={model?.info?.meta?.profile_image_url ?? '/static/favicon.png'}
|
src={model?.info?.meta?.profile_image_url ?? '/static/favicon.png'}
|
||||||
class=" size-5 rounded-full -translate-x-[0.5px]"
|
class=" size-5 rounded-full -translate-x-[0.5px]"
|
||||||
alt="logo"
|
alt="logo"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex self-center translate-y-[0.5px]">
|
|
||||||
<div class=" self-center font-medium text-sm font-primary line-clamp-1">
|
|
||||||
{model?.name ?? modelId}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</a>
|
<div class="flex self-center translate-y-[0.5px]">
|
||||||
</div>
|
<div class=" self-center font-medium text-sm font-primary line-clamp-1">
|
||||||
|
{model?.name ?? modelId}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user