fix: TOC panel never auto-opens on login — always starts closed

- Removed localStorage restore of obsigate-right-sidebar-visible on init
- TOC only opens when user clicks the TOC button in a document
- Width preference still restored from localStorage
This commit is contained in:
2026-07-24 09:43:37 -04:00
parent 3cf1c33b69
commit 3655ef8a7e
+1 -5
View File
@@ -1099,13 +1099,9 @@
},
loadState() {
const savedVisible = localStorage.getItem("obsigate-right-sidebar-visible");
// Always start closed on login/refresh — user must explicitly toggle TOC
const savedWidth = localStorage.getItem("obsigate-right-sidebar-width");
if (savedVisible !== null) {
rightSidebarVisible = savedVisible === "true";
}
if (savedWidth) {
rightSidebarWidth = parseInt(savedWidth) || 280;
}