From 984de714cdf31faad7cc5dad11efb5d3eef51b4a Mon Sep 17 00:00:00 2001
From: Jay Sitter <jay@jaysitter.com>
Date: Sun, 25 Jun 2023 18:15:59 -0400
Subject: [PATCH] fix: Restore removed classes

---
 src/shared/components/post/post-listing.tsx | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx
index c84d9b9..3efd7fd 100644
--- a/src/shared/components/post/post-listing.tsx
+++ b/src/shared/components/post/post-listing.tsx
@@ -1131,14 +1131,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           {this.canMod_ && (
             <>
               {!this.creatorIsMod_ &&
-                (!post_view.creator_banned_from_community ? (
-                  <li>{this.modBanFromCommunityButton}</li>
-                ) : (
-                  <li>{this.modUnbanFromCommunityButton}</li>
-                ))}
-              {!post_view.creator_banned_from_community && (
-                <li>{this.addModToCommunityButton}</li>
-              )}
+                (!post_view.creator_banned_from_community
+                  ? this.modBanFromCommunityButton
+                  : this.modUnbanFromCommunityButton)}
+              {!post_view.creator_banned_from_community &&
+                this.addModToCommunityButton}
             </>
           )}
 
@@ -1160,13 +1157,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
             ) : (
               <>
                 <button
-                  className="btn btn-link btn-animate text-muted py-0 dropdown-item"
+                  className="d-inline-block me-1 btn btn-link btn-animate text-muted py-0 dropdown-item"
                   aria-label={I18NextService.i18n.t("are_you_sure")}
                 >
                   {I18NextService.i18n.t("are_you_sure")}
                 </button>
                 <button
-                  className="btn btn-link btn-animate text-muted py-0 dropdown-item"
+                  className="btn btn-link btn-animate text-muted py-0 dropdown-item d-inline-block me-1"
                   aria-label={I18NextService.i18n.t("yes")}
                   onClick={linkEvent(this, this.handleTransferCommunity)}
                 >
@@ -1177,7 +1174,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                   )}
                 </button>
                 <button
-                  className="btn btn-link btn-animate text-muted py-0 dropdown-item"
+                  className="btn btn-link btn-animate text-muted py-0 dropdown-item d-inline-block"
                   onClick={linkEvent(
                     this,
                     this.handleCancelShowConfirmTransferCommunity
-- 
2.44.1