-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
CSS: adjust media query breakpoint to improve tablet readability #15199
CSS: adjust media query breakpoint to improve tablet readability #15199
Conversation
What do you think @nextcloud/designers? |
Damn, I had a pending branch for that :D see 1a36280 |
@skjnldsv thanks for pointing that out. I tested briefly with the main default apps and I didn't see that we needed any more changes, but since you have made more progress on this, should we merge your changes here? or do you have a standing PR? In that case we can close this as duplicate |
@nachoparker I did not opened the pr yet :) |
(sorry I deleted my remote branch accidentally) @skjnldsv I looked at your changes and tweaked them a bit. The only big change is in |
Another one: server/apps/files_sharing/css/public.scss Line 198 in c91ba00
|
Ah, I just saw that. |
🎺 |
let me get you an animation, it will be easier to explain |
Ok, this is with the rule @media only screen and (max-width: 1024px) and (min-width: 769px), only screen and (max-width: 688px) { , and this is with @media only screen and (max-width: $breakpoint-mobile) { If we want to keep three cut points, there needs to be more adjustment to be made. I like it simple but that's just my preference. |
@nachoparker looking at the gifs:
|
Thanks @jancborchardt the first one is what you already have, only substituting 938px -> 1024px, that's what I mean that it needs some more tweaking because it doesn't look good (and I proposed number 2). Let's see if we can find a sweet spot |
Ok, so if we want three breakpoints I think this is exactly what we are after -> f902ee7 |
apps/files/css/mobile.scss
Outdated
@@ -1,4 +1,4 @@ | |||
@media only screen and (max-width: $breakpoint-mobile) { | |||
@media only screen and (max-width: 938px) and (min-width: $breakpoint-mobile + 1), only screen and (max-width: 688px) { |
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.
938 was basically the 688+250 (nav width)
We might be able to find the use of the mobile breakpoint somewhere here :)
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 think the idea behind it is that we found that the min width the filelist should have was 688px, (with full view, modified, size, actions.
..) So those breakpoints were there for that.
@jancborchardt ?
@nachoparker nice, that last gif you posted looks perfect to me! 👍 What do you think @nextcloud/designers? |
I pushed a commit to use the $navigation-width variable. |
33c108f
to
3cbb466
Compare
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.
rebased and ready to go
3cbb466
to
c3fe271
Compare
@skjnldsv hmm, the gif by @nachoparker looks slightly better than the last one you posted, because it has 1 less breaking step:
You have a strange step between 1 and 2 with "Show navigation but hide file details", which doesn’t seem necessary. The content should always take precedence over the navigation. That is, before any content is hidden, the navigation should be hidden before, as done in @nachoparker’s gif. 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.
Looking very good now! 👍
(We should also look at how it works with the right sidebar, but that’s a follow-up. :)
c3fe271
to
3c30d29
Compare
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
@skjnldsv Just a minor nitpick. You commited some git merge/rebase LOCAL REMOTE files to the repo. ;-) See main.js.map |
@go2sh what do you mean? Edit ah damn, I see it now. Thanks! |
Thanks gents! |
see nextcloud/news#467