From ee642289638e92f651d50c923220db4c63d7532a Mon Sep 17 00:00:00 2001 From: diondiondion Date: Wed, 24 Sep 2025 10:57:18 +0200 Subject: [PATCH] [Glitch] Fix unfortunate action button wrapping in admin area Port 6cbc857ee01eab85c469a42143f84cccd5e247bc to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/styles/admin.scss | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/admin.scss b/app/javascript/flavours/glitch/styles/admin.scss index 12c7042a17..81e441a187 100644 --- a/app/javascript/flavours/glitch/styles/admin.scss +++ b/app/javascript/flavours/glitch/styles/admin.scss @@ -163,7 +163,7 @@ $content-width: 840px; flex: 1 1 auto; } - @media screen and (max-width: $content-width + $sidebar-width) { + @media screen and (max-width: ($content-width + $sidebar-width)) { .sidebar-wrapper--empty { display: none; } @@ -1086,6 +1086,17 @@ a.name-tag, } } + &__action-bar { + display: flex; + justify-content: space-between; + align-items: center; + gap: 8px; + + &:not(.no-wrap) { + flex-wrap: wrap; + } + } + &__meta { padding: 0 15px; color: $dark-text-color; @@ -1102,10 +1113,8 @@ a.name-tag, } } - &__action-bar { - display: flex; - justify-content: space-between; - align-items: center; + &__actions { + margin-inline-start: auto; } &__permissions {