From d0fb7e614766b5f5e1021535ac65fac77b219f56 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Thu, 22 Jun 2023 17:30:48 -0400 Subject: [PATCH] fix: Undo some extraneous changes --- src/shared/components/post/post-listing.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index a913f53..15e7416 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -779,7 +779,7 @@ export class PostListing extends Component { get crossPostButton() { return ( { data-tippy-content={I18NextService.i18n.t("cross_post")} aria-label={I18NextService.i18n.t("cross_post")} > - - {I18NextService.i18n.t("cross_post")} + ); } @@ -1361,7 +1360,7 @@ export class PostListing extends Component { ); } - bodyPreview() { + showMobilePreview() { const { body, id } = this.postView.post; return !this.showBody && body ? ( @@ -1385,10 +1384,10 @@ export class PostListing extends Component { {/* If it has a thumbnail, do a right aligned thumbnail */} {this.mobileThumbnail()} -
- {this.bodyPreview()} - {this.commentsLine(true)} -
+ {/* Show a preview of the post body */} + {this.showMobilePreview()} + + {this.commentsLine(true)} {this.userActionsLine()} {this.duplicatesLine()} {this.removeAndBanDialogs()} @@ -1417,7 +1416,6 @@ export class PostListing extends Component {
{this.postTitleLine()} {this.createdLine()} - {this.bodyPreview()} {this.commentsLine()} {this.duplicatesLine()} {this.userActionsLine()} -- 2.44.1