[FEAT] A collapse button in the sidebar which when clicked closes all the open folders#2314
Merged
[FEAT] A collapse button in the sidebar which when clicked closes all the open folders#2314
Conversation
abose
requested changes
Jun 30, 2025
Member
abose
left a comment
There was a problem hiding this comment.
Cool Feature!
Just some notes:
- Align the icon position relative to other icons in top bar too. Check the button width too on hover to match buttons above, or if both lines are different scales, we can have different sizes too. Don't know if it is fully inline with top icons. but horizontal alignment looks ok.
- Also check what happens when file names are really long and git branch name is really long by editing the DOM in dev tools if the button will still be rendered properly. Reduce width of sidebar and see how it behaves on smaller width too.
- Integration tests
c8b6c01 to
8a5eb9a
Compare
abose
requested changes
Jul 4, 2025
abose
reviewed
Jul 4, 2025
abose
requested changes
Jul 4, 2025
|
abose
approved these changes
Jul 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR adds a 'Collapse' button in the sidebar area, specifically 'project-files-header' section.
this button when clicked closes all the opened folders recursively. it is really useful to keep things organized.
Now, to keep the UI simpler, we hide the button by default and only show it when the sidebar area is hovered.
Issue reference: #2126
Visual Reference
https://github.com/user-attachments/assets/968a871d-9a17-4d85-838f-81b850b775b4