From 2b1670da48ea532300db79a82f0e6e4202f5b337 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 13 Aug 2024 19:48:28 +0200 Subject: [PATCH] Fix modal border and padding inconsistencies (#31399) --- app/javascript/styles/mastodon/components.scss | 9 +++++---- app/javascript/styles/mastodon/variables.scss | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 995568e1475..6ef498c79be 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -2837,7 +2837,7 @@ $ui-header-logo-wordmark-width: 99px; overflow: hidden; } -@media screen and (width >= 631px) { +@media screen and (width > $mobile-breakpoint) { .columns-area { padding: 0; } @@ -5736,7 +5736,7 @@ a.status-card { user-select: text; display: flex; - @media screen and (width <= 630px) { + @media screen and (width <= $mobile-breakpoint) { margin-top: auto; } } @@ -6095,7 +6095,7 @@ a.status-card { border-radius: 0 0 16px 16px; border-top: 0; - @media screen and (max-width: $no-gap-breakpoint) { + @media screen and (max-width: $mobile-breakpoint) { border-radius: 0; border-bottom: 0; padding-bottom: 32px; @@ -9097,8 +9097,9 @@ noscript { backdrop-filter: var(--background-filter); border: 1px solid var(--modal-border-color); padding: 24px; + box-sizing: border-box; - @media screen and (max-width: $no-gap-breakpoint) { + @media screen and (max-width: $mobile-breakpoint) { border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: 32px; diff --git a/app/javascript/styles/mastodon/variables.scss b/app/javascript/styles/mastodon/variables.scss index 2ba3dfb49d6..92b4770fe38 100644 --- a/app/javascript/styles/mastodon/variables.scss +++ b/app/javascript/styles/mastodon/variables.scss @@ -88,6 +88,7 @@ $media-modal-media-max-width: 100%; $media-modal-media-max-height: 80%; $no-gap-breakpoint: 1175px; +$mobile-breakpoint: 630px; $font-sans-serif: 'mastodon-font-sans-serif' !default; $font-display: 'mastodon-font-display' !default;