-
Notifications
You must be signed in to change notification settings - Fork 303
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
Sidebar now responsive as ever #3209
Sidebar now responsive as ever #3209
Conversation
Sidebar resizing only detects window resizes in 100px steps to prevent unnecessary computation when user decides to play with the glorious responsiveness.
Aaaaand I found a bug just after opening this PR. Resizing window with the sidebar closed makes it appear without actually opening it. Should be easy enough to fix actually. |
Aaaaand fixed! That was easy. |
this.resize_for_narrow(); | ||
if (this.state_model.get("open")) { | ||
if ($(window).width() < 1260) | ||
this.resize_for_narrow(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
We're antsy to merge this, so I'll just add the brackets. |
Sidebar now responsive as ever
@MCGallaspy You guys dig it so much, eh? |
I have made some fancy CSS and Backbone changes that make the whole thing embrace various screen sizes more than ever before. I had never thought I'd see this happen anytime soon, but the sidebar now literally behaves like a Bootstrap component, resizing live with the window size. While I feel there is more optimization to do going forward, this is a stable enough update to be merged.
This update builds on top of #3139 and adds the following:
Largest size (> 1300px)
Smallest size (504px)
Suggestions for tweaks and improvements welcome (are the font sizes okay?).