-
Notifications
You must be signed in to change notification settings - Fork 421
Mobile View Fix for bottom sidebar #5428
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
base: main
Are you sure you want to change the base?
Conversation
Changed location of icon button to be more visible to users
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5428 +/- ##
=======================================
Coverage 86.03% 86.04%
=======================================
Files 312 312
Lines 30365 30388 +23
Branches 8299 8304 +5
=======================================
+ Hits 26126 26148 +22
- Misses 3645 3646 +1
Partials 594 594 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I think we should do this work in two steps: First, make it so that the layout remains sturdy even with small viewports. By sturdy I mean that no circles get squished, no text labels wrap, no extra spaces appear, and you can never scroll to unintended gaps. So the first milestone would be something that looks and feels robust but which makes many things inaccessible because they get clipped off. We can add Once this is achieved, we can do the second step: Introduce wrapping flex in some places where we want wrapping to happen, and introduce media queries and custom "small screen" layout where it makes sense. But in the first step there shouldn't be any media queries yet. |
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.
I don't mind Markus plan on the long run, but I think I'd be fine with some early quick fixes too.
I'd like that the users can easily see the timeline, or reach the marker table, for example. This would make it possible to look at things from mobile even if things are not "nice" yet.
I didn't look at the exact CSS because it's still a draft, just left a few surprises and comments.
src/components/app/Details.css
Outdated
@@ -13,6 +13,11 @@ | |||
border: solid var(--grey-30); | |||
border-width: 1px 0; | |||
background: var(--grey-10); | |||
|
|||
@media screen and (max-width: 768px) { |
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.
I'm very surprised that adding a media query inside the css rule works at all. I don't see any documentation about this syntax...
I mean:
.classrule {
@media query {
}
}
I thought @media queries always need to be top-level:
@media query {
.classrule {
}
}
But I'm fine with the syntax if it's supported broadly!
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.
Ah I see this is pretty new and comes with CSS nesting:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Nesting_at-rules
This seems to be quite well supported: https://caniuse.com/?search=CSS%20nesting but still a bit early.
For example it's not in the older Firefox ESR (v115) that is still supported by Mozilla. So I think we'd need to add https://www.npmjs.com/package/postcss-nesting to our postcss configuration to be able to use it for now. What do you think?
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, to accommodate the older versions, I'll add postcss-nesing
package. Fair enough.
returnToZipFileList, | ||
invalidatePanelLayout, | ||
}, | ||
mapDispatchToProps: { returnToZipFileList, invalidatePanelLayout }, |
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.
it looks like your IDE's formatting configuration changes things that you don't touch otherwise (see also the changes to Details above), and that are not necessary. While I don't really mind, this makes the patches more difficult to review.
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, it's not intentional. It's hard to catch these file changes when I run the lint commands. I'll keep an eye out in the future.
I see. I'll consider the robustness of the layout while I work through this PR. |
…tainer for responsive tab and regular tab display
… stack menus scroll horizontally; sidebar closed on mobile breakpoint
Please open the profile setting your screen on mobile view: Deploy preview
For review: please look at this most relevant commit: removed media queries & reponsive tab bar component; made the tab and stack menus scroll horizontally; sidebar closed on mobile breakpoint
Offered solution:
Screenshot and video:
ProfilerMobile.mov