]> Untitled Git - lemmy-ui.git/commitdiff
Fix post listing formatting.
authorDessalines <tyhou13@gmx.com>
Tue, 17 Nov 2020 19:48:09 +0000 (13:48 -0600)
committerDessalines <tyhou13@gmx.com>
Tue, 17 Nov 2020 19:48:09 +0000 (13:48 -0600)
src/shared/components/post-listing.tsx

index 6e5e867f3c9a425b74228f74578e28b49035630b..b9485b7904dc1afaaf285f03d2ed12606da6edf5 100644 (file)
@@ -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