From 784bcc646bc3be7912c1ffffcd870226751f2536 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 6 Mar 2020 11:51:25 -0500 Subject: [PATCH] Adding post listing separators. Hiding full score unless downvotes. --- ui/src/components/post-listing.tsx | 39 ++++++++++++++++++------------ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index bfa58a739..2d09e90e5 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -463,27 +463,34 @@ export class PostListing extends Component { )} +
  • -
  • - - - - - {this.state.upvotes} - -
  • -
  • - - - - - {this.state.downvotes} - -
  • +
  • + {this.state.upvotes !== this.state.score && ( + <> +
  • + + + + + {this.state.upvotes} + +
  • +
  • + + + + + {this.state.downvotes} + +
  • +
  • + + )}