From baa4bcda2311bee7973d778a9849c9acf5226b72 Mon Sep 17 00:00:00 2001 From: Ella E Date: Fri, 25 Feb 2022 15:03:58 -0700 Subject: [PATCH] FIX: on mobile, overflow on post controls if there are many buttons (#16054) --- app/assets/stylesheets/mobile/topic-post.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss index d84fdabc9c7..c883fa46933 100644 --- a/app/assets/stylesheets/mobile/topic-post.scss +++ b/app/assets/stylesheets/mobile/topic-post.scss @@ -33,10 +33,9 @@ nav.post-controls { --control-space: 0.58em; --control-space-small: calc(var(--control-space) / 2); --control-space-large: calc(var(--control-space) * 1.3); - &.expanded { - // on small devices with many buttons this can overflow - overflow-x: scroll; - } + // on small devices with many buttons this can overflow + overflow-x: scroll; + .actions { // using an auto margin on first-child instead of justify-content on the parent // because justify-content breaks overflow scrolling