fix: Fix display inline of post title
authorJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 04:41:47 +0000 (00:41 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 18 Jun 2023 14:19:42 +0000 (10:19 -0400)
src/shared/components/post/post-listing.tsx

index 1120de1c81952f0098b6f825149605471568f349..222e4857aed577e642226e5bf17b8caf0f7fc557 100644 (file)
@@ -497,7 +497,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     const post = this.postView.post;
     return (
       <Link
-        className={`d-inline-block ${
+        className={`d-inline ${
           !post.featured_community && !post.featured_local
             ? "text-body"
             : "text-primary"
@@ -505,8 +505,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
         to={`/post/${post.id}`}
         title={i18n.t("comments")}
       >
-        <div
-          className="d-inline-block"
+        <span
+          className="d-inline"
           dangerouslySetInnerHTML={mdToHtmlInline(post.name)}
         />
       </Link>