diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-01-18 20:58:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 20:58:11 +0100 |
commit | b506ce119766bb3308f934e2d3de143b3ac6f5ad (patch) | |
tree | 01bd6b0e268dfe8fd8013b1d2f3cef7e056b1c65 /app/javascript/styles | |
parent | 32daecffefa5e633bf104ad4fac33621f6ea8201 (diff) |
Fix new hashtag page's items not being full-width on mobile (#9852)
Fix #9845
Diffstat (limited to 'app/javascript/styles')
-rw-r--r-- | app/javascript/styles/mastodon/containers.scss | 2 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/widgets.scss | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app/javascript/styles/mastodon/containers.scss b/app/javascript/styles/mastodon/containers.scss index 8de53ca98..a98fa52c4 100644 --- a/app/javascript/styles/mastodon/containers.scss +++ b/app/javascript/styles/mastodon/containers.scss @@ -295,7 +295,7 @@ color: $primary-text-color; } - @media screen and (max-width: $no-gap-breakpoint) { + @media screen and (max-width: 550px) { &.optional { display: none; } diff --git a/app/javascript/styles/mastodon/widgets.scss b/app/javascript/styles/mastodon/widgets.scss index 0699900dc..c97337e4e 100644 --- a/app/javascript/styles/mastodon/widgets.scss +++ b/app/javascript/styles/mastodon/widgets.scss @@ -432,6 +432,10 @@ $fluid-breakpoint: $maximum-width + 20px; .statuses-grid { min-height: 600px; + @media screen and (max-width: 640px) { + width: 100% !important; // Masonry layout is unnecessary at this width + } + &__item { width: (960px - 20px) / 3; @@ -439,6 +443,10 @@ $fluid-breakpoint: $maximum-width + 20px; width: (940px - 20px) / 3; } + @media screen and (max-width: 640px) { + width: 100%; + } + @media screen and (max-width: $no-gap-breakpoint) { width: 100vw; } @@ -448,7 +456,7 @@ $fluid-breakpoint: $maximum-width + 20px; border-radius: 4px; @media screen and (max-width: $no-gap-breakpoint) { - border-bottom: 1px solid lighten($ui-base-color, 12%); + border-top: 1px solid lighten($ui-base-color, 16%); } &.compact { |