mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
Merge pull request #1310 from mr00z/main
This commit is contained in:
commit
f2db90196d
1 changed files with 5 additions and 2 deletions
|
@ -1382,9 +1382,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
showMobilePreview() {
|
showMobilePreview() {
|
||||||
const body = this.postView.post.body;
|
const { body, id } = this.postView.post;
|
||||||
|
|
||||||
return !this.showBody && body ? (
|
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