]> Untitled Git - lemmy-ui.git/commitdiff
fix(post): Fix missing labels on block/report buttons in new dropdown
authorJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 20:02:55 +0000 (16:02 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 20:02:55 +0000 (16:02 -0400)
src/shared/components/post/post-listing.tsx

index 56961e22f86a20679f1a851a63c931e43feac187..2e048a2f1de12ab996057423308e28c038cee070 100644 (file)
@@ -867,10 +867,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
       <button
         className="btn btn-link btn-sm d-flex align-items-center rounded-0 dropdown-item"
         onClick={linkEvent(this, this.handleShowReportDialog)}
-        data-tippy-content={i18n.t("show_report_dialog")}
         aria-label={i18n.t("show_report_dialog")}
       >
-        <Icon icon="flag" inline />
+        <Icon classes="mr-1" icon="flag" inline />
+        {i18n.t("create_report")}
       </button>
     );
   }
@@ -880,10 +880,14 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
       <button
         className="btn btn-link btn-sm d-flex align-items-center rounded-0 dropdown-item"
         onClick={linkEvent(this, this.handleBlockPersonClick)}
-        data-tippy-content={i18n.t("block_user")}
         aria-label={i18n.t("block_user")}
       >
-        {this.state.blockLoading ? <Spinner /> : <Icon icon="slash" inline />}
+        {this.state.blockLoading ? (
+          <Spinner />
+        ) : (
+          <Icon classes="mr-1" icon="slash" inline />
+        )}
+        {i18n.t("block_user")}
       </button>
     );
   }