From 4836da9d64e09fe9dbb5e7809c40bd8b281f06dc Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Tue, 17 Nov 2020 13:48:09 -0600
Subject: [PATCH] Fix post listing formatting.

---
 src/shared/components/post-listing.tsx | 29 +++++++++++++-------------
 1 file changed, 15 insertions(+), 14 deletions(-)

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
-- 
2.44.1