From: Jay Sitter Date: Tue, 20 Jun 2023 23:53:55 +0000 (-0400) Subject: feat: Hide 'comments' in post listing comments button; icon and title text is clear X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.es.md?a=commitdiff_plain;h=3574212c76dfaebbf6915aea3fa538ba1e05b740;p=lemmy-ui.git feat: Hide 'comments' in post listing comments button; icon and title text is clear --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 1c58546..5249e8f 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -734,24 +734,22 @@ export class PostListing extends Component { get commentsButton() { const post_view = this.postView; + const title = i18n.t("number_of_comments", { + count: Number(post_view.counts.comments), + formattedCount: Number(post_view.counts.comments), + }); + return ( - - {i18n.t("number_of_comments", { - count: Number(post_view.counts.comments), - formattedCount: numToSI(post_view.counts.comments), - })} - + {post_view.counts.comments} {this.unreadCount && ( - + ({this.unreadCount} {i18n.t("new")}) )}