Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ChatSidebar collapsible/expandable. #1393

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

soh-tetsu
Copy link

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

Copy link

vercel bot commented Apr 26, 2024

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

A member of the Team first needs to authorize it.

@soh-tetsu soh-tetsu marked this pull request as draft April 26, 2024 17:04
@soh-tetsu soh-tetsu marked this pull request as ready for review April 26, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant