aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-vanilla/src/main.ts')
-rw-r--r--frontend-vanilla/src/main.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/frontend-vanilla/src/main.ts b/frontend-vanilla/src/main.ts
index 7d75e14..3dc0574 100644
--- a/frontend-vanilla/src/main.ts
+++ b/frontend-vanilla/src/main.ts
@@ -87,11 +87,7 @@ export function attachLayoutListeners() {
store.setSidebarVisible(false);
});
- window.addEventListener('resize', () => {
- if (window.innerWidth > 768 && !store.sidebarVisible) {
- store.setSidebarVisible(true);
- }
- });
+ // Sidebar state is persisted via cookie; no auto-open on resize
// Collapsible sections
document.querySelectorAll('.sidebar-section.collapsible h3').forEach(header => {