fix: temporary chat button missing on new chats when tabs are enabled (#33680)

With the tabbed layout on, the Temporary Chat button disappeared from a new chat, so a temporary chat could not be started from there. The button now shows in the new chat's tab like it did in the classic navbar.
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-04 05:19:21 +09:00
1 parent 40b1c561a5
commit 40b7b5201b
1 file changed
+1 -1
+1 -1
View File
@@ -188,7 +188,7 @@
{#snippet renderChatActions()}
{#if $user?.role === 'user' ? ($user?.permissions?.chat?.temporary ?? true) && !($user?.permissions?.chat?.temporary_enforced ?? false) : true}
{#if !chat?.id && !tabbed}
{#if !chat?.id}
<Tooltip content={$i18n.t(`Temporary Chat`)}>
<button
class="flex size-6 cursor-pointer items-center justify-center rounded-lg text-gray-500 transition hover:bg-gray-50/40 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-800/40 dark:hover:text-gray-200"