From 22e172a47aa680ac1e25f203ba0940cd29e015cb 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 8779f1f..3eff8c7 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}
+ +
+ }