enh: sidebar models collapsible

This commit is contained in:
Timothy Jaeryang Baek 2025-10-26 19:00:27 -07:00
parent 8197844ff7
commit 82c08a3b5d

View file

@ -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)}