Skip to content

Commit

Permalink
Replace flex styling with sensible layout rules (#22803)
Browse files Browse the repository at this point in the history
The old styling would cause multiple admin header buttons in a flex container to overflow the page on mobile. This new styling uses `flex-flow: wrap` along with a gap, which gets rid of the awkward `:not(:first-child)` pseudoselector and makes multiple buttons in a row flow nicely.
  • Loading branch information
dariusk committed Dec 28, 2022
1 parent 536d55c commit ef4d29c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/javascript/styles/mastodon/admin.scss
Expand Up @@ -254,10 +254,8 @@ $content-width: 840px;

&__actions {
display: inline-flex;

& > :not(:first-child) {
margin-left: 5px;
}
flex-flow: wrap;
gap: 5px;
}

h2 small {
Expand Down

0 comments on commit ef4d29c

Please sign in to comment.