From: Marcin Mróz Date: Thu, 15 Jun 2023 17:21:42 +0000 (+0200) Subject: feat(post-listing): Add link to post for mobile preview X-Git-Url: http://these/git/?a=commitdiff_plain;h=e470db3fde147855789f0442f0bc9e26e32a67e4;p=lemmy-ui.git feat(post-listing): Add link to post for mobile preview --- diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d5fc785..60e188a 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1382,9 +1382,12 @@ export class PostListing extends Component { } showMobilePreview() { - const body = this.postView.post.body; + const { body, id } = this.postView.post; + return !this.showBody && body ? ( -
{body}
+ +
{body}
+ ) : ( <> );