From 1c9a0fe18e19831277fd1c1be6d28559b3bad108 Mon Sep 17 00:00:00 2001
From: Kris <kris.aubuchon@discourse.org>
Date: Wed, 15 Dec 2021 15:36:10 -0500
Subject: [PATCH] UX: let mobile post controls scroll on overflow (#15305)

---
 app/assets/stylesheets/mobile/topic-post.scss | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss
index adad908cffa..03d12820079 100644
--- a/app/assets/stylesheets/mobile/topic-post.scss
+++ b/app/assets/stylesheets/mobile/topic-post.scss
@@ -37,7 +37,11 @@ span.badge-posts {
     }
     .actions {
       display: flex;
-      justify-content: flex-end;
+      // using an auto margin on first-child instead of justify-content on the parent
+      // because justify-content breaks overflow scrolling
+      :first-child {
+        margin-left: auto;
+      }
 
       // Handles the like and flag buttons in the post menu.
       .double-button {