From 4e5d7b6e842bb419f1d286c08d8583c1a89f5a4a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 6 Mar 2020 11:51:25 -0500 Subject: Adding post listing separators. Hiding full score unless downvotes. --- ui/src/components/post-listing.tsx | 39 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'ui/src/components') diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index bfa58a73..2d09e90e 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} + +
  • +
  • + + )}