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
[Admin] Added collapse menu #11668
[Admin] Added collapse menu #11668
Conversation
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.
Hey Stéphane,
thanks a lot for this improvement :) Also, welcome among Sylius contributors 🎉
However, can you rebase to the newest master and check how will it behave together with #11571? |
Also, will it remember which cards have been collapsed and which not? It could be annoying for users to always toggle them. |
Hi @lchrusciel The first screenshot was not up to date sorry :P I created my pull request from the master so the task is there :) |
@lchrusciel I will still check something and I tell you :) |
c839b0b
to
23230f8
Compare
@lchrusciel Rebase ok and check ok 👍 : |
Thanks, Stéphane! 🎉 |
This PR was merged into the 1.8-dev branch. Discussion ---------- Reverts #11668 Although it's nice to see new contributions and I am very grateful for the community input, this PR has to be reverted. 😢 ![Nagranie z ekranu 2020-07-23 o 08 34 23](https://user-images.githubusercontent.com/13198869/88258296-1c5f0d80-ccc0-11ea-9d91-f3deeeafe46d.gif) The behaviour of this "menu collapsing JS" highly lowers the UX of the admin menu. First of all, it works slowly. Secondly, it is collapsed by default, so after each redirect, we end up with a menu collapsed again even though we've been using it a moment ago. And finally, it was merged pretty reckless, without consulting in the community and with the Core Team. Final thought, for anyone who'd like to rework that: The admin menu should be collapsible, not collapsed. 😂 Commits ------- 9baca24 Revert "[Admin] Added collapse menu"
visibility: hidden; | ||
overflow: hidden; | ||
max-height: 0; | ||
transition: all .5s ease-in-out; |
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.
https://medium.com/outsystems-experts/how-to-achieve-60-fps-animations-with-css3-db7b98610108
https://stackoverflow.com/a/12347702/6796253
These links seem to fix the actual problem. :)
Add collapse on admin sidebar