fix(web): sidebar collapsed by default on all devices

This commit is contained in:
hailin 2026-01-09 22:07:17 -08:00
parent f12ca7a821
commit 4718d60bff
2 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,9 @@
"Bash(ping:*)",
"Bash(curl:*)",
"Bash(echo \"No health endpoint\" curl -s https://iconsulting.szaiai.com/api/v1/users/profile -H \"x-user-id: test\")",
"Bash(scp:*)"
"Bash(scp:*)",
"Bash(timeout 20 cat:*)",
"Bash(npm run build:*)"
]
}
}

View File

@ -58,8 +58,8 @@ export const useChatStore = create<ChatState>((set, get) => ({
userId: null,
setUserId: (id) => set({ userId: id }),
// Sidebar - default open on desktop
sidebarOpen: window.innerWidth >= 768,
// Sidebar - always collapsed by default
sidebarOpen: false,
setSidebarOpen: (open) => set({ sidebarOpen: open }),
toggleSidebar: () => set((state) => ({ sidebarOpen: !state.sidebarOpen })),