Fixing comment buttons now.

This commit is contained in:
Dessalines 2019-08-19 15:39:45 -07:00
parent 10917489fc
commit 1b72e0c0e3

View File

@ -62,13 +62,13 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
return (
<div className={`comment ${node.comment.parent_id && !this.props.noIndent ? 'ml-4' : ''}`}>
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
<div className={`pointer ${node.comment.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(node, this.handleCommentLike)}>
<svg class="pointer icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
</div>
<button className={`btn btn-sm p-0 ${node.comment.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(node, this.handleCommentLike)}>
<svg class="icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
</button>
<div class={`font-weight-bold text-muted`}>{node.comment.score}</div>
<div className={`pointer ${node.comment.my_vote == -1 ? 'text-danger' : 'text-muted'}`} onClick={linkEvent(node, this.handleCommentDisLike)}>
<svg class="pointer icon downvote"><use xlinkHref="#icon-arrow-down"></use></svg>
</div>
<button className={`btn btn-sm p-0 ${node.comment.my_vote == -1 ? 'text-danger' : 'text-muted'}`} onClick={linkEvent(node, this.handleCommentDisLike)}>
<svg class="icon downvote"><use xlinkHref="#icon-arrow-down"></use></svg>
</button>
</div>
<div id={`comment-${node.comment.id}`} className={`details comment-node ml-4 ${this.isCommentNew ? 'mark' : ''}`}>
<ul class="list-inline mb-0 text-muted small">