onyx icon indicating copy to clipboard operation
onyx copied to clipboard

Make ChatSidebar collapsible/expandable.

Open soh-tetsu opened this issue 10 months ago • 1 comments

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.

image

image

soh-tetsu avatar Apr 26 '24 17:04 soh-tetsu

@soh-tetsu is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 26 '24 17:04 vercel[bot]

It's been added!

yuhongsun96 avatar Sep 08 '24 03:09 yuhongsun96