]> Untitled Git - lemmy-ui.git/commitdiff
fix: Fix post creator text alignment
authorJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 16:46:31 +0000 (12:46 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 16:46:31 +0000 (12:46 -0400)
src/shared/components/person/person-listing.tsx
src/shared/components/post/post-listing.tsx

index fe8b8418628e2ca191a7d23ea9b415304cec8722..4d2f5cf4b3d8c05ee6503203c68f5778074a8614 100644 (file)
@@ -48,7 +48,9 @@ export class PersonListing extends Component<PersonListingProps, any> {
         {!this.props.realLink ? (
           <Link
             title={apubName}
-            className={this.props.muted ? "text-muted" : "text-info"}
+            className={`d-inline-flex align-items-baseline ${
+              this.props.muted ? "text-muted" : "text-info"
+            }`}
             to={link}
           >
             {this.avatarAndName(displayName)}
@@ -56,7 +58,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 56961e22f86a20679f1a851a63c931e43feac187..93a436f3b9129568cb02fc8230e545c93941ee12 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 && (