mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
enh: sidebar models collapsible
This commit is contained in:
parent
8197844ff7
commit
82c08a3b5d
1 changed files with 8 additions and 1 deletions
|
|
@ -891,7 +891,14 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if ($models ?? []).length > 0 && ($settings?.pinnedModels ?? []).length > 0}
|
{#if ($models ?? []).length > 0 && ($settings?.pinnedModels ?? []).length > 0}
|
||||||
<PinnedModelList bind:selectedChatId {shiftKey} />
|
<Folder
|
||||||
|
className="px-2 mt-0.5"
|
||||||
|
name={$i18n.t('Models')}
|
||||||
|
chevron={false}
|
||||||
|
dragAndDrop={false}
|
||||||
|
>
|
||||||
|
<PinnedModelList bind:selectedChatId {shiftKey} />
|
||||||
|
</Folder>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if $config?.features?.enable_channels && ($user?.role === 'admin' || $channels.length > 0)}
|
{#if $config?.features?.enable_channels && ($user?.role === 'admin' || $channels.length > 0)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue