mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
feat(sidebar): add isPlaygroundSidebarOpen prop for improved sidebar state management
- Introduced isPlaygroundSidebarOpen prop to Sidebar component for better control of sidebar visibility. - Updated LayoutShell to manage playground sidebar state, enhancing user experience and navigation consistency.
This commit is contained in:
parent
2fa8b76b56
commit
33e685c6ed
2 changed files with 6 additions and 1 deletions
|
|
@ -352,6 +352,9 @@ export function LayoutShell({
|
|||
onPlaygroundItemClick={
|
||||
playgroundSidebar ? handlePlaygroundSidebarToggle : undefined
|
||||
}
|
||||
isPlaygroundSidebarOpen={
|
||||
playgroundSidebar ? !isPlaygroundSidebarCollapsed : undefined
|
||||
}
|
||||
chats={chats}
|
||||
activeChatId={activeChatId}
|
||||
onNewChat={onNewChat}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue