-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: control bar refactor #1529
fix: control bar refactor #1529
Conversation
…m:dhis2/dashboard-app into fix/no-interactive-below-expanded-ctrlbar
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.
Big PR, but it seems ok.
One comment about the icons used, but they can be changed later in a separate PR.
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.
Generally looks good, just some minor details, see the individual comments
src/components/Dashboard/styles/PrintLayoutDashboard.module.css
Outdated
Show resolved
Hide resolved
display: none; | ||
} | ||
|
||
@media only screen and (max-height: 480px), only screen and (max-width: 480px) { |
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.
Seems like there's a lot of these media queries now, maybe we could extract the queries to consts, to just use an abstraction like e.g. @media var(--phone-landscape), var(--phone-portrait)
instead?
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.
That could be. I've never tried it actually, so I'll try now.
src/components/ControlBar/ViewControlBar/styles/Content.module.css
Outdated
Show resolved
Hide resolved
src/components/ControlBar/ViewControlBar/styles/Content.module.css
Outdated
Show resolved
Hide resolved
src/components/ControlBar/ViewControlBar/styles/DashboardsBar.module.css
Outdated
Show resolved
Hide resolved
src/components/ControlBar/ViewControlBar/styles/DashboardsBar.module.css
Outdated
Show resolved
Hide resolved
src/components/ControlBar/ViewControlBar/styles/DragHandle.module.css
Outdated
Show resolved
Hide resolved
…m:dhis2/dashboard-app into fix/no-interactive-below-expanded-ctrlbar
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.
🥇
## [31.11.1](v31.11.0...v31.11.1) (2021-02-17) ### Bug Fixes * control bar refactor ([#1529](#1529)) ([84dde66](84dde66))
🎉 This PR is included in version 31.11.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes:
non-interactive.dashboard.when.cb.expanded.mov
landscape.to.portrait.mov
** No video for this, but since the controlbar is no longer position fixed (except when expanded), it should behave better.
Refactor:
** Most code in DragHandle hasn't changed from its original form in the deleted ControlBar file