Skip to content

Commit

Permalink
Use container queries to hide profile share button (mastodon#27889)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Nov 16, 2023
1 parent 87696ea commit c94bedf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7289,6 +7289,7 @@ noscript {

.account__header {
overflow: hidden;
container: account-header / inline-size;

&.inactive {
opacity: 0.5;
Expand Down Expand Up @@ -7390,7 +7391,7 @@ noscript {
}
}

@media screen and (width <= 427px) {
@container account-header (max-width: 372px) {
.optional {
display: none;
}
Expand Down

0 comments on commit c94bedf

Please sign in to comment.