]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into fix/fix-post-creator-alignment
authorJay Sitter <jsit@users.noreply.github.com>
Mon, 19 Jun 2023 03:45:06 +0000 (23:45 -0400)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2023 03:45:06 +0000 (23:45 -0400)
src/shared/components/person/person-listing.tsx
src/shared/components/post/post-listing.tsx

index fe8b8418628e2ca191a7d23ea9b415304cec8722..045633c7957f098cc7f54a51c99190d92c569d2d 100644 (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}
           >
index fd5fd29c3e2762f5ad58baa17cc1a59e580794c2..d2e3893c9380685d9eeda0592850ead802de658b 100644 (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 && (