onyx
onyx copied to clipboard
Make ChatSidebar collapsible/expandable.
Description:
In this PR, I have made updates to the ChatSidebar.tsx
file. The changes include:
-
Introduced a new state variable,
isSidebarOpen
, to keep track of the sidebar's visibility status. -
Implemented a
toggleSidebar
function that alternates the sidebar's status between collapsed and expanded states. -
Added a clickable button styled with CSS to trigger the sidebar toggle.
-
Installed
react-tooltip
and use it to show tooltip for sidebar toggle button.
These changes aim to implement an acceptable collapsible ChatSidebar with minimized code modification.
@soh-tetsu is attempting to deploy a commit to the Danswer Team on Vercel.
A member of the Team first needs to authorize it.
It's been added!