From: Jay Sitter Date: Sun, 25 Jun 2023 22:13:13 +0000 (-0400) Subject: fix: Remove wrapping li's X-Git-Url: http://these/git/%22https:/join-lemmy.org/readmes/README.ja.md?a=commitdiff_plain;h=ffb0ffb255bd5936400d4b66689812ee3d04431a;p=lemmy-ui.git fix: Remove wrapping li's --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 000a944..9255058 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1117,53 +1117,45 @@ export class PostListing extends Component { this.canAdmin_) && this.creatorIsMod_ && (!this.state.showConfirmTransferCommunity ? ( -
  • + + ) : ( + <> + + -
  • - ) : ( - <> -
  • - -
  • -
  • - -
  • -
  • - -
  • ))} {/* Admins can ban from all, and appoint other admins */} @@ -1171,18 +1163,16 @@ export class PostListing extends Component { <> {!this.creatorIsAdmin_ && ( <> - {!isBanned(post_view.creator) ? ( -
  • {this.modBanButton}
  • - ) : ( -
  • {this.modUnbanButton}
  • - )} -
  • {this.purgePersonButton}
  • -
  • {this.purgePostButton}
  • + {!isBanned(post_view.creator) + ? this.modBanButton + : this.modUnbanButton} + {this.purgePersonButton} + {this.purgePostButton} )} - {!isBanned(post_view.creator) && post_view.creator.local && ( -
  • {this.toggleAdminButton}
  • - )} + {!isBanned(post_view.creator) && + post_view.creator.local && + this.toggleAdminButton} )}