From 528aed7f58b74c73bf4187839b7cbf0e90d78267 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 25 Jun 2023 16:33:11 -0400 Subject: [PATCH] feat(UI): Hide avatars on listings --- src/shared/components/post/post-listing.tsx | 11 +++++++++-- src/shared/components/post/post-listings.tsx | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 76a3e44..a27d833 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -106,6 +106,7 @@ interface PostListingProps { siteLanguages: number[]; showCommunity?: boolean; showBody?: boolean; + hideAvatars?: boolean; hideImage?: boolean; enableDownvotes?: boolean; enableNsfw?: boolean; @@ -397,7 +398,10 @@ export class PostListing extends Component { const post_view = this.postView; return ( - + {this.creatorIsMod_ && ( {I18NextService.i18n.t("mod")} @@ -417,7 +421,10 @@ export class PostListing extends Component { <> {" "} {I18NextService.i18n.t("to")}{" "} - + )} {post_view.post.language_id !== 0 && ( diff --git a/src/shared/components/post/post-listings.tsx b/src/shared/components/post/post-listings.tsx index 1fdaeba..29bbf58 100644 --- a/src/shared/components/post/post-listings.tsx +++ b/src/shared/components/post/post-listings.tsx @@ -76,6 +76,7 @@ export class PostListings extends Component { showCommunity={this.props.showCommunity} enableDownvotes={this.props.enableDownvotes} enableNsfw={this.props.enableNsfw} + hideAvatars={true} viewOnly={this.props.viewOnly} allLanguages={this.props.allLanguages} siteLanguages={this.props.siteLanguages} -- 2.44.1