From: Jay Sitter Date: Sun, 25 Jun 2023 20:21:58 +0000 (-0400) Subject: feat(UI): Always put post body behind togggle on post listings (home/community) ... X-Git-Url: http://these/git/%7B%60%24%7BarchiveUrl%7D/static/%7BcommunityRSSUrl%28?a=commitdiff_plain;h=a92dd541a741f17f9b6dbfe17174a2b6ecbf758a;p=lemmy-ui.git feat(UI): Always put post body behind togggle on post listings (home/community) #1595 --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 76a3e44..c373b67 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1368,18 +1368,6 @@ export class PostListing extends Component { ); } - showBodyPreview() { - const { body, id } = this.postView.post; - - return !this.showBody && body ? ( - -
{body}
- - ) : ( - <> - ); - } - listing() { return ( <> @@ -1392,9 +1380,6 @@ export class PostListing extends Component { {/* If it has a thumbnail, do a right aligned thumbnail */} {this.mobileThumbnail()} - {/* Show a preview of the post body */} - {this.showBodyPreview()} - {this.commentsLine(true)} {this.userActionsLine()} {this.duplicatesLine()} @@ -1424,7 +1409,6 @@ export class PostListing extends Component {
{this.postTitleLine()} {this.createdLine()} - {this.showBodyPreview()} {this.commentsLine()} {this.duplicatesLine()} {this.userActionsLine()}