mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
关闭 sidebar ( showSidebar 为 false,sidebar收缩) 中 workspace 选项 和 note 选项;在收缩的 sidebar 中添加了跳转到记忆界面按钮;删除了记忆界面中 清空所有记忆的按钮
This commit is contained in:
parent
97cc0ff92e
commit
afc61fc69d
1 changed files with 37 additions and 14 deletions
|
|
@ -617,8 +617,8 @@
|
||||||
<div class=" self-center flex items-center justify-center size-9">
|
<div class=" self-center flex items-center justify-center size-9">
|
||||||
<img
|
<img
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
src="{WEBUI_BASE_URL}/static/favicon.png"
|
src="static/favicon.png"
|
||||||
class="sidebar-new-chat-icon size-6 rounded-full group-hover:hidden"
|
class="sidebar-new-chat-icon size-6 rounded-full group-hover:hidden invert"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -650,8 +650,31 @@
|
||||||
</a>
|
</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="">
|
<div class="">
|
||||||
|
<Tooltip content={$i18n.t('Memory')} placement="right">
|
||||||
|
<a
|
||||||
|
id="sidebar-memory-button"
|
||||||
|
class=" cursor-pointer flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
|
href="/memories"
|
||||||
|
draggable="false"
|
||||||
|
on:click={async (e) => {
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
goto('/memories');
|
||||||
|
itemClickHandler();
|
||||||
|
}}
|
||||||
|
aria-label={$i18n.t('Memory')}
|
||||||
|
>
|
||||||
|
<div class=" self-center flex items-center justify-center size-9">
|
||||||
|
<Sparkles strokeWidth="2" className="size-4.5" />
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div class="">
|
||||||
<Tooltip content={$i18n.t('Search')} placement="right">
|
<Tooltip content={$i18n.t('Search')} placement="right">
|
||||||
<button
|
<button
|
||||||
class=" cursor-pointer flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
class=" cursor-pointer flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
|
|
@ -669,9 +692,9 @@
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
{#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
|
<!-- {#if ($config?.features?.enable_notes ?? false) && ($user?.role === 'admin' || ($user?.permissions?.features?.notes ?? true))}
|
||||||
<div class="">
|
<div class="">
|
||||||
<Tooltip content={$i18n.t('Notes')} placement="right">
|
<Tooltip content={$i18n.t('Notes')} placement="right">
|
||||||
<a
|
<a
|
||||||
|
|
@ -693,9 +716,9 @@
|
||||||
</a>
|
</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
{#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools}
|
<!-- {#if $user?.role === 'admin' || $user?.permissions?.workspace?.models || $user?.permissions?.workspace?.knowledge || $user?.permissions?.workspace?.prompts || $user?.permissions?.workspace?.tools}
|
||||||
<div class="">
|
<div class="">
|
||||||
<Tooltip content={$i18n.t('Workspace')} placement="right">
|
<Tooltip content={$i18n.t('Workspace')} placement="right">
|
||||||
<a
|
<a
|
||||||
|
|
@ -730,7 +753,7 @@
|
||||||
</a>
|
</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if} -->
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
@ -862,7 +885,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
<!-- <div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
||||||
<button
|
<button
|
||||||
id="sidebar-search-button"
|
id="sidebar-search-button"
|
||||||
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
|
class="grow flex items-center space-x-3 rounded-2xl px-2.5 py-2 hover:bg-gray-100 dark:hover:bg-gray-900 transition outline-none"
|
||||||
|
|
@ -880,7 +903,7 @@
|
||||||
<div class=" self-center text-sm font-primary">{$i18n.t('Search')}</div>
|
<div class=" self-center text-sm font-primary">{$i18n.t('Search')}</div>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
<div class="px-[7px] flex justify-center text-gray-800 dark:text-gray-200">
|
||||||
<a
|
<a
|
||||||
|
|
@ -961,7 +984,7 @@
|
||||||
<PinnedModelList bind:selectedChatId {shiftKey} />
|
<PinnedModelList bind:selectedChatId {shiftKey} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if $config?.features?.enable_channels && ($user?.role === 'admin' || $channels.length > 0)}
|
<!-- {#if $config?.features?.enable_channels && ($user?.role === 'admin' || $channels.length > 0)}
|
||||||
<Folder
|
<Folder
|
||||||
className="px-2 mt-0.5"
|
className="px-2 mt-0.5"
|
||||||
name={$i18n.t('Channels')}
|
name={$i18n.t('Channels')}
|
||||||
|
|
@ -987,9 +1010,9 @@
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
</Folder>
|
</Folder>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
{#if folders}
|
<!-- {#if folders}
|
||||||
<Folder
|
<Folder
|
||||||
className="px-2 mt-0.5"
|
className="px-2 mt-0.5"
|
||||||
name={$i18n.t('Folders')}
|
name={$i18n.t('Folders')}
|
||||||
|
|
@ -1039,7 +1062,7 @@
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Folder>
|
</Folder>
|
||||||
{/if}
|
{/if} -->
|
||||||
|
|
||||||
<Folder
|
<Folder
|
||||||
className="px-2 mt-0.5"
|
className="px-2 mt-0.5"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue