From d99fa5268d63e0bdc9107fb16b60eabc168aff51 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 2 Sep 2019 15:00:49 -0700 Subject: [PATCH] Hiding vote bar on comment collapse - Fixes #259 --- ui/src/components/comment-node.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index 8779f1f9..3eff8c79 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -65,15 +65,17 @@ export class CommentNode extends Component { let node = this.props.node; return (
-
- -
{node.comment.score}
- -
+ {!this.state.collapsed && +
+ +
{node.comment.score}
+ +
+ }