fix(web): sidebar collapsed by default on all devices
This commit is contained in:
parent
f12ca7a821
commit
4718d60bff
|
|
@ -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:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 })),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue