mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
fix: Undo some extraneous changes
This commit is contained in:
parent
7af899ee75
commit
d0fb7e6147
1 changed files with 7 additions and 9 deletions
|
@ -779,7 +779,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
get crossPostButton() {
|
get crossPostButton() {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className="btn btn-sm d-flex align-items-center rounded-0 dropdown-item"
|
className="btn-animate text-muted py-0"
|
||||||
to={{
|
to={{
|
||||||
/* Empty string properties are required to satisfy type*/
|
/* Empty string properties are required to satisfy type*/
|
||||||
pathname: "/create_post",
|
pathname: "/create_post",
|
||||||
|
@ -792,8 +792,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
data-tippy-content={I18NextService.i18n.t("cross_post")}
|
data-tippy-content={I18NextService.i18n.t("cross_post")}
|
||||||
aria-label={I18NextService.i18n.t("cross_post")}
|
aria-label={I18NextService.i18n.t("cross_post")}
|
||||||
>
|
>
|
||||||
<Icon classes="me-1" icon="copy" inline />
|
<Icon icon="copy" inline />
|
||||||
{I18NextService.i18n.t("cross_post")}
|
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1361,7 +1360,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bodyPreview() {
|
showMobilePreview() {
|
||||||
const { body, id } = this.postView.post;
|
const { body, id } = this.postView.post;
|
||||||
|
|
||||||
return !this.showBody && body ? (
|
return !this.showBody && body ? (
|
||||||
|
@ -1385,10 +1384,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
{/* If it has a thumbnail, do a right aligned thumbnail */}
|
{/* If it has a thumbnail, do a right aligned thumbnail */}
|
||||||
{this.mobileThumbnail()}
|
{this.mobileThumbnail()}
|
||||||
|
|
||||||
<div className="mt-2">
|
{/* Show a preview of the post body */}
|
||||||
{this.bodyPreview()}
|
{this.showMobilePreview()}
|
||||||
{this.commentsLine(true)}
|
|
||||||
</div>
|
{this.commentsLine(true)}
|
||||||
{this.userActionsLine()}
|
{this.userActionsLine()}
|
||||||
{this.duplicatesLine()}
|
{this.duplicatesLine()}
|
||||||
{this.removeAndBanDialogs()}
|
{this.removeAndBanDialogs()}
|
||||||
|
@ -1417,7 +1416,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
{this.postTitleLine()}
|
{this.postTitleLine()}
|
||||||
{this.createdLine()}
|
{this.createdLine()}
|
||||||
{this.bodyPreview()}
|
|
||||||
{this.commentsLine()}
|
{this.commentsLine()}
|
||||||
{this.duplicatesLine()}
|
{this.duplicatesLine()}
|
||||||
{this.userActionsLine()}
|
{this.userActionsLine()}
|
||||||
|
|
Loading…
Reference in a new issue