|
@@ -72,6 +72,23 @@
|
|
<MenuLines />
|
|
<MenuLines />
|
|
</div>
|
|
</div>
|
|
</button>
|
|
</button>
|
|
|
|
+
|
|
|
|
+ <Tooltip content={$i18n.t('New Chat')}>
|
|
|
|
+ <button
|
|
|
|
+ id="new-chat-button"
|
|
|
|
+ class=" flex {$showSidebar
|
|
|
|
+ ? 'md:hidden'
|
|
|
|
+ : ''} cursor-pointer px-2 py-2 rounded-xl text-gray-600 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-850 transition"
|
|
|
|
+ on:click={() => {
|
|
|
|
+ initNewChat();
|
|
|
|
+ }}
|
|
|
|
+ aria-label="New Chat"
|
|
|
|
+ >
|
|
|
|
+ <div class=" m-auto self-center">
|
|
|
|
+ <PencilSquare className=" size-5" strokeWidth="2" />
|
|
|
|
+ </div>
|
|
|
|
+ </button>
|
|
|
|
+ </Tooltip>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
<div
|
|
@@ -135,23 +152,6 @@
|
|
</button>
|
|
</button>
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
|
|
|
- <Tooltip content={$i18n.t('New Chat')}>
|
|
|
|
- <button
|
|
|
|
- id="new-chat-button"
|
|
|
|
- class=" flex {$showSidebar
|
|
|
|
- ? 'md:hidden'
|
|
|
|
- : ''} cursor-pointer px-2 py-2 rounded-xl text-gray-600 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-850 transition"
|
|
|
|
- on:click={() => {
|
|
|
|
- initNewChat();
|
|
|
|
- }}
|
|
|
|
- aria-label="New Chat"
|
|
|
|
- >
|
|
|
|
- <div class=" m-auto self-center">
|
|
|
|
- <PencilSquare className=" size-5" strokeWidth="2" />
|
|
|
|
- </div>
|
|
|
|
- </button>
|
|
|
|
- </Tooltip>
|
|
|
|
-
|
|
|
|
{#if $user !== undefined && $user !== null}
|
|
{#if $user !== undefined && $user !== null}
|
|
<UserMenu
|
|
<UserMenu
|
|
className="max-w-[240px]"
|
|
className="max-w-[240px]"
|