mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 17:54:21 +00:00
Fixing comment buttons now.
This commit is contained in:
parent
1fe8ecaf7a
commit
ee9d053251
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue