Merge pull request #1373 from jsit/fix/fix-post-creator-alignment

fix: Fix post creator text alignment
This commit is contained in:
SleeplessOne1917 2023-06-19 03:47:29 +00:00 committed by GitHub
commit 2951651d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,4 @@
import classNames from "classnames";
import { Component } from "inferno";
import { Link } from "inferno-router";
import { Person } from "lemmy-js-client";
@ -48,7 +49,10 @@ export class PersonListing extends Component<PersonListingProps, any> {
{!this.props.realLink ? (
<Link
title={apubName}
className={this.props.muted ? "text-muted" : "text-info"}
className={classNames("d-inline-flex align-items-baseline", {
"text-muted": this.props.muted,
"text-info": !this.props.muted,
})}
to={link}
>
{this.avatarAndName(displayName)}
@ -56,7 +60,9 @@ export class PersonListing extends Component<PersonListingProps, any> {
) : (
<a
title={apubName}
className={this.props.muted ? "text-muted" : "text-info"}
className={`d-inline-flex align-items-baseline ${
this.props.muted ? "text-muted" : "text-info"
}`}
href={link}
rel={relTags}
>

View File

@ -386,10 +386,10 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</span>
)}
{this.props.showCommunity && (
<span>
<span className="mx-1"> {i18n.t("to")} </span>
<CommunityLink community={post_view.community} />
</span>
<>
{" "}
{i18n.t("to")} <CommunityLink community={post_view.community} />
</>
)}
</li>
{post_view.post.language_id !== 0 && (