From: Dessalines <tyhou13@gmx.com>
Date: Tue, 17 Nov 2020 19:48:09 +0000 (-0600)
Subject: Fix post listing formatting.
X-Git-Url: http://these/git/%24%7B%60data:application/static/gitweb.css?a=commitdiff_plain;h=4836da9d64e09fe9dbb5e7809c40bd8b281f06dc;p=lemmy-ui.git

Fix post listing formatting.
---

diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx
index 6e5e867..b9485b7 100644
--- a/src/shared/components/post-listing.tsx
+++ b/src/shared/components/post-listing.tsx
@@ -562,20 +562,21 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                 </svg>
                 {this.state.upvotes}
               </button>
-              {this.props.enableDownvotes && (<button
-                className={`ml-2 btn-animate btn py-0 pl-1 ${
-                  this.state.my_vote == -1 ? 'text-danger' : 'text-muted'
-                }`}
-                onClick={linkEvent(this, this.handlePostDisLike)}
-                data-tippy-content={this.pointsTippy}
-              >
-                <svg class="small icon icon-inline mr-2">
-                  <use xlinkHref="#icon-arrow-down1"></use>
-                </svg>
-                {this.state.downvotes !== 0 && (
-                  <span>{this.state.downvotes}</span>
-                )}
-              </button>
+              {this.props.enableDownvotes && (
+                <button
+                  className={`ml-2 btn-animate btn py-0 pl-1 ${
+                    this.state.my_vote == -1 ? 'text-danger' : 'text-muted'
+                  }`}
+                  onClick={linkEvent(this, this.handlePostDisLike)}
+                  data-tippy-content={this.pointsTippy}
+                >
+                  <svg class="small icon icon-inline mr-2">
+                    <use xlinkHref="#icon-arrow-down1"></use>
+                  </svg>
+                  {this.state.downvotes !== 0 && (
+                    <span>{this.state.downvotes}</span>
+                  )}
+                </button>
               )}
             </div>
             <button