]> Untitled Git - lemmy-ui.git/commitdiff
feat(css): make vertical rhythm more consistent for post listings
authorayan4m1 <andrew@bulletlogic.com>
Mon, 19 Jun 2023 01:36:27 +0000 (21:36 -0400)
committerAndrew DeLisa <andrew@bulletlogic.com>
Mon, 19 Jun 2023 03:55:04 +0000 (23:55 -0400)
src/shared/components/post/post-listing.tsx

index d2e3893c9380685d9eeda0592850ead802de658b..80da4b327dd633fdeb97b28c852181c8ed5d38c0 100644 (file)
@@ -201,7 +201,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     const post = this.postView.post;
 
     return (
-      <div className="post-listing">
+      <div className="post-listing mt-2">
         {!this.state.showEdit ? (
           <>
             {this.listing()}
@@ -621,11 +621,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     const post = this.postView.post;
 
     return (
-      <div className="d-flex align-items-center justify-content-start flex-wrap text-muted font-weight-bold mb-1">
+      <div className="d-flex align-items-center justify-content-start flex-wrap text-muted font-weight-bold">
         {this.commentsButton}
         {canShare() && (
           <button
-            className="btn btn-link"
+            className="btn btn-sm btn-link"
             onClick={linkEvent(this, this.handleShare)}
             type="button"
           >
@@ -723,7 +723,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
     const post_view = this.postView;
     return (
       <Link
-        className="btn btn-link text-muted py-0 pl-0 text-muted"
+        className="btn btn-link text-muted pl-0 text-muted"
         title={i18n.t("number_of_comments", {
           count: Number(post_view.counts.comments),
           formattedCount: Number(post_view.counts.comments),