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
+11 -1
View File
@@ -34,7 +34,9 @@
toolServers,
terminalServers,
showSearch,
showSidebar
showSidebar,
showControls,
mobile
} from '$lib/stores';
import Sidebar from '$lib/components/layout/Sidebar.svelte';
@@ -322,6 +324,14 @@
checkForVersionUpdates();
}
}
// Persist showControls via chatControlsSize (0 = closed, >0 = open at that size)
await showControls.set(!$mobile ? parseInt(localStorage.chatControlsSize || '0') > 0 : false);
showControls.subscribe((value) => {
if (!value) {
localStorage.chatControlsSize = '0';
}
});
await tick();
loaded = true;