From 57e274c87a1bb57991e56c1670db2df6dc78f117 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 16 Apr 2019 20:23:52 -0700 Subject: [PATCH] Adding better comment highlighting. Fixes #66 --- ui/src/components/comment-node.tsx | 4 ++-- ui/src/components/post-listing.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 1fba1d923..dcfb18a9c 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -49,13 +49,13 @@ export class CommentNode extends Component { render() { let node = this.props.node; return ( -
+
{node.comment.score}
-
+
  • {node.comment.creator_name} diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx index 46e2a9949..1a52bf79c 100644 --- a/ui/src/components/post-listing.tsx +++ b/ui/src/components/post-listing.tsx @@ -63,7 +63,7 @@ export class PostListing extends Component {
    {post.url ?
    -

    {post.name} +

    {post.name} {post.removed && removed } @@ -71,12 +71,12 @@ export class PostListing extends Component { locked }

    - {(new URL(post.url)).hostname} + {(new URL(post.url)).hostname} { !this.state.iframeExpanded - ? + + ? + : - - + -