]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into feat/toggle-body-1595
authorJay Sitter <jsit@users.noreply.github.com>
Sun, 25 Jun 2023 21:50:02 +0000 (17:50 -0400)
committerGitHub <noreply@github.com>
Sun, 25 Jun 2023 21:50:02 +0000 (17:50 -0400)
src/shared/components/post/post-listing.tsx

index ac90b0d8fb13bdd04731eb7409fa9884331aa5b9..86787cc40b1704c0a17f763b74178d932be77a04 100644 (file)
@@ -1368,18 +1368,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     );
   }
 
-  showBodyPreview() {
-    const { body, id } = this.postView.post;
-
-    return !this.showBody && body ? (
-      <Link className="text-body mt-2 d-block" to={`/post/${id}`}>
-        <div className="md-div mb-1 preview-lines">{body}</div>
-      </Link>
-    ) : (
-      <></>
-    );
-  }
-
   listing() {
     return (
       <>
@@ -1392,9 +1380,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               {/* 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<PostListingProps, PostListingState> {
                 <div className="col-12">
                   {this.postTitleLine()}
                   {this.createdLine()}
-                  {this.showBodyPreview()}
                   {this.commentsLine()}
                   {this.duplicatesLine()}
                   {this.userActionsLine()}