-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: scroll away control bar when viewing dashboard on screen with height <=480px #1550
Conversation
document.getElementsByClassName('dashboard-scroll-container') | ||
).forEach(container => { | ||
container.scroll(0, 0) | ||
}) |
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.
Why not using querySelector
still?
I understand there is always only 1 element with that class.
Or maybe use this instead?
}) | |
document.getElementsByClassName('dashboard-scroll-container').item(0)?.scroll(0,0) |
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.
Actually, there can be 2 elements with the class
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.
Yes, i missed the one in DashboardContainer
.
Nvm the comments.
Array.from( | ||
document.getElementsByClassName('dashboard-scroll-container') | ||
).forEach(container => { | ||
container.addEventListener( |
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.
See comment above.
# [31.12.0](v31.11.2...v31.12.0) (2021-02-18) ### Features * scroll away control bar when viewing dashboard on screen with height <=480px ([#1550](#1550)) ([0caf0d8](0caf0d8))
🎉 This PR is included in version 31.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
When the screen height is <=480px, then scroll all the content, including the control bar. When more than 480px, scroll only the actual dashboard. Note that progressive loading is not working consistently right now (pre-existing issue - currently being investigated)
Small refactor:
scrollctrlbar.mov