mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-29 12:04:04 +00:00
Merge pull request #1310 from mr00z/main
This commit is contained in:
commit
f2db90196d
|
@ -1382,9 +1382,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
}
|
||||
|
||||
showMobilePreview() {
|
||||
const body = this.postView.post.body;
|
||||
const { body, id } = this.postView.post;
|
||||
|
||||
return !this.showBody && body ? (
|
||||
<div className="md-div mb-1 preview-lines">{body}</div>
|
||||
<Link className="text-body" to={`/post/${id}`}>
|
||||
<div className="md-div mb-1 preview-lines">{body}</div>
|
||||
</Link>
|
||||
) : (
|
||||
<></>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue