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(ping:*)",
|
||||||
"Bash(curl:*)",
|
"Bash(curl:*)",
|
||||||
"Bash(echo \"No health endpoint\" curl -s https://iconsulting.szaiai.com/api/v1/users/profile -H \"x-user-id: test\")",
|
"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,
|
userId: null,
|
||||||
setUserId: (id) => set({ userId: id }),
|
setUserId: (id) => set({ userId: id }),
|
||||||
|
|
||||||
// Sidebar - default open on desktop
|
// Sidebar - always collapsed by default
|
||||||
sidebarOpen: window.innerWidth >= 768,
|
sidebarOpen: false,
|
||||||
setSidebarOpen: (open) => set({ sidebarOpen: open }),
|
setSidebarOpen: (open) => set({ sidebarOpen: open }),
|
||||||
toggleSidebar: () => set((state) => ({ sidebarOpen: !state.sidebarOpen })),
|
toggleSidebar: () => set((state) => ({ sidebarOpen: !state.sidebarOpen })),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue