diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d942f0280..48369f823 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -33,7 +33,6 @@ currentChatPage, temporaryChatEnabled, mobile, - showOverview, chatTitle, showArtifacts, artifactContents, @@ -704,31 +703,13 @@ } } - // Persist controls panel state for desktop only - if (!$mobile) { - localStorage.setItem('showControls', JSON.stringify(value)); - } - if (!value) { showCallOverlay.set(false); - showOverview.set(false); showArtifacts.set(false); showEmbeds.set(false); } }); - // Restore controls panel state on desktop - if (!$mobile) { - try { - const savedShowControls = localStorage.getItem('showControls'); - if (savedShowControls !== null && JSON.parse(savedShowControls)) { - showControls.set(true); - } - } catch (e) { - // ignore - } - } - selectedFolderSubscribe = selectedFolder.subscribe(async (folder) => { if ( folder?.data?.model_ids && @@ -1110,7 +1091,6 @@ await showControls.set(false); } await showCallOverlay.set(false); - await showOverview.set(false); await showArtifacts.set(false); if ($page.url.pathname.includes('/c/')) { diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index ef4295834..c941a5ec4 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -1,5 +1,5 @@ {#if !largeScreen} @@ -198,7 +213,7 @@ onClose={() => showControls.set(false)} className="min-h-[100dvh] !bg-white dark:!bg-gray-850" > -
+
{#if $showCallOverlay}
{:else if $showArtifacts} - {:else if $showOverview} - {#await import('./Overview.svelte') then { default: Overview }} - { - const node = e.node; - showMessage(node.data.message, true); - }} - onClose={() => showControls.set(false)} - /> - {/await} {:else}
@@ -252,6 +256,16 @@ {$i18n.t('Files')} {/if} + {#if hasMessages} + + {/if}
{/if} + {#if hasMessages} + + {/if}