This commit is contained in:
Timothy Jaeryang Baek
2026-02-25 16:56:32 -06:00
parent 8b2160f2f7
commit 3271a5277c
10 changed files with 165 additions and 142 deletions
-20
View File
@@ -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/')) {