From c94bedf4e6e5987864b42d63aa90920f80d3644e Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 16 Nov 2023 12:59:45 +0100 Subject: [PATCH] Use container queries to hide profile share button (#27889) --- app/javascript/styles/mastodon/components.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index cc9b54d9e..8a79eddf0 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -7289,6 +7289,7 @@ noscript { .account__header { overflow: hidden; + container: account-header / inline-size; &.inactive { opacity: 0.5; @@ -7390,7 +7391,7 @@ noscript { } } - @media screen and (width <= 427px) { + @container account-header (max-width: 372px) { .optional { display: none; }