mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -506,7 +506,10 @@
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="pb-1.5">
|
<div class="pb-1.5">
|
||||||
<Tooltip content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}>
|
<Tooltip
|
||||||
|
content={$showSidebar ? $i18n.t('Close Sidebar') : $i18n.t('Open Sidebar')}
|
||||||
|
placement="right"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class=" flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group cursor-[e-resize]"
|
class=" flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group cursor-[e-resize]"
|
||||||
>
|
>
|
||||||
@@ -526,7 +529,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="">
|
<div class="">
|
||||||
<Tooltip content={$i18n.t('New Chat')}>
|
<Tooltip content={$i18n.t('New Chat')} placement="right">
|
||||||
<a
|
<a
|
||||||
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
href="/"
|
href="/"
|
||||||
@@ -547,7 +550,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="">
|
<div class="">
|
||||||
<Tooltip content={$i18n.t('Search')}>
|
<Tooltip content={$i18n.t('Search')} placement="right">
|
||||||
<button
|
<button
|
||||||
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
on:click={(e) => {
|
on:click={(e) => {
|
||||||
@@ -567,7 +570,7 @@
|
|||||||
|
|
||||||
{#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')}>
|
<Tooltip content={$i18n.t('Notes')} placement="right">
|
||||||
<a
|
<a
|
||||||
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
href="/notes"
|
href="/notes"
|
||||||
@@ -590,7 +593,7 @@
|
|||||||
|
|
||||||
{#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')}>
|
<Tooltip content={$i18n.t('Workspace')} placement="right">
|
||||||
<a
|
<a
|
||||||
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
class=" cursor-pointer flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group"
|
||||||
href="/workspace"
|
href="/workspace"
|
||||||
|
|||||||
Reference in New Issue
Block a user