-
Notifications
You must be signed in to change notification settings - Fork 154
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
Small screen adjustments for mobile PWA usage #2184
base: the-future
Are you sure you want to change the base?
Changes from all commits
4684294
20641f7
d93813b
9cad6a1
467ff9c
dd03c0a
e331e4e
779c54b
e6e081e
e157515
839ebd5
a1468e7
c71a2b6
763c33d
6792fd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,8 @@ | |
width: 100%; | ||
position: relative; | ||
@media (max-width: 768px) { | ||
margin: 0; | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
} | ||
&.quick-update-enabled { | ||
margin-top: 250px; | ||
|
@@ -1509,6 +1510,10 @@ | |
width: 100%; | ||
max-width: 540px; | ||
margin: 0 auto; | ||
|
||
@media (max-width: 562px) { | ||
margin: 0 12px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is the margin larger for a full-page post than for the feed? This just feels inconsistent. |
||
} | ||
} | ||
|
||
// Stream review item | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
} | ||
@media (max-width: 768px) { | ||
width: 100%; | ||
max-height: 179px; | ||
padding: 0; | ||
margin: 0; | ||
left: -2px; | ||
|
@@ -223,6 +224,10 @@ | |
&.navbar-nav .nav-item + .nav-item { | ||
margin-left: 10px; | ||
} | ||
|
||
@media (max-width: 604px) { | ||
padding-right: 10px; | ||
} | ||
} | ||
.notifications { | ||
width: 25px; | ||
|
@@ -324,6 +329,11 @@ | |
|
||
.search--drop { | ||
width: 350px; | ||
|
||
@media (max-width: 452px) { | ||
width: 300px; | ||
} | ||
|
||
max-height: 90vh; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your changes result in the searchbar being hidden by the results dropdown while typing on iOS (at least on my phone with the browser interface on the bottom). I'd suggest making this max height use the new max-height: 85vh; /* less likely to interfere with other stuff */
max-height: 90dvh; |
||
background-color: $search-background-color; | ||
overflow: auto; | ||
|
@@ -334,6 +344,12 @@ | |
.search--results { | ||
padding: 5px 0; | ||
.media { | ||
@media (max-width: 550px) { | ||
display: grid; | ||
grid-template-columns: 62px 1fr min-content; | ||
column-gap: 8px; | ||
} | ||
|
||
padding: 5px 10px; | ||
&:hover { | ||
background: $search-results-hover-background; | ||
|
@@ -359,6 +375,15 @@ | |
background-color: $search-header-background; | ||
padding: 10px; | ||
margin-bottom: 0px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
||
.search-close { | ||
border: none; | ||
background-color: inherit; | ||
fill: $body-text-color; | ||
} | ||
} | ||
|
||
.search--group-header { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,6 +266,12 @@ | |
} | ||
|
||
.library-content { | ||
@media (max-width: 768px) { | ||
width: 100%; | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
} | ||
Comment on lines
+269
to
+273
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Refer to my comment on the spacing for feeds. Same applies here. |
||
|
||
.media-browse { | ||
padding: 0; | ||
margin-bottom: 15px; | ||
|
@@ -769,6 +775,13 @@ | |
} | ||
|
||
.library-empty-block { | ||
h5 { | ||
@media (max-width: 768px) { | ||
margin-left: 8px; | ||
margin-right: 8px; | ||
} | ||
} | ||
|
||
img { | ||
width: 200px; | ||
height: 200px; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,13 @@ | |
width: 100%; | ||
margin-top: -38px; | ||
margin-bottom: 30px; | ||
padding: 30px 0 0px; | ||
padding: 30px 0 0; | ||
|
||
@media (max-width: 608px) { | ||
padding: 30px 12px 0 12px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Too much padding. The existing spacing is already good. Fix the Facebook button instead. |
||
margin-bottom: 0; | ||
} | ||
|
||
img { | ||
width: 40px; | ||
height: 40px; | ||
|
@@ -96,6 +102,12 @@ | |
.form-group { | ||
padding-bottom: 20px; | ||
margin-bottom: 0; | ||
|
||
.form-check-label { | ||
&.link-facebook-button { | ||
margin-left: auto; | ||
} | ||
} | ||
} | ||
small { | ||
color: #909090; | ||
|
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 not a fan of this change. At least not on smaller phones. It looks good on my OnePlus 6T but on my iPhone X, it takes up too much space. I suggest you add another media query for smaller screens.
This also applies to the full-page posts.