]> Untitled Git - lemmy-ui.git/commitdiff
fix: Restore removed classes
authorJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 22:15:59 +0000 (18:15 -0400)
committerJay Sitter <jay@jaysitter.com>
Tue, 27 Jun 2023 00:12:40 +0000 (20:12 -0400)
src/shared/components/post/post-listing.tsx

index 92550589dfb97f83bb6ff544379b24ccece7cbb1..8cd8b0c18572a5b7e809200cbc79463e55b24bab 100644 (file)
@@ -1101,14 +1101,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}
             </>
           )}
 
@@ -1130,13 +1127,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)}
                 >
@@ -1147,7 +1144,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