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 and vmstan committed Jan 5, 2024
1 parent aa1a2df commit bbe90bf
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 bbe90bf

Please sign in to comment.