From e470db3fde147855789f0442f0bc9e26e32a67e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Mro=CC=81z?= Date: Thu, 15 Jun 2023 19:21:42 +0200 Subject: [PATCH] feat(post-listing): Add link to post for mobile preview --- src/shared/components/post/post-listing.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index d5fc785c..60e188a3 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}
+ ) : ( <> );