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
Add section collapse functionality #1772
Conversation
Uffizzi Preview |
@jannikbecher this looks like a great starting point. We can tackle the collapse and expand all in another pull request. Two things:
@jonatanklosko do you think this should be fully handled client side? I guess we can add a class when collapsing and then remove it. We change the content accordingly based on the presence of said class? |
@josevalim sorry I'm complete beginner in UI and tailwind... |
Yeah, one option would be adding a class to section and some conditional rules (as we do in |
Ahh I see. I completely misused LiveView functionality here. I will come up with a solution the next days using js_interop.css as @jonatanklosko described :) |
@jannikbecher awesome! I moved the button closer to the title and made it hidden unless collapsed or hovered :) collapse_section.mov |
This looks so much nicer! Thanks for the patience. I learned so much the last couple of days and it was such a joy :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor suggestions for @jonatanklosko to consider and ship it!
Thanks @jannikbecher ❤️
Co-authored-by: José Valim <jose.valim@gmail.com>
WIP #1686
screen_recording_livebook_collapse_section.webm
Is this heading in the right direction?
Not sure about the "Expand all" and "Collapse all" buttons..