Try changing votes to buttons.
This commit is contained in:
parent
aae235279e
commit
10917489fc
1 changed files with 6 additions and 6 deletions
|
@ -60,13 +60,13 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
return (
|
return (
|
||||||
<div class="listing">
|
<div class="listing">
|
||||||
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
<div className={`vote-bar mr-1 float-left small text-center ${this.props.viewOnly && 'no-click'}`}>
|
||||||
<div className={`pointer ${post.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostLike)}>
|
<button className={`btn btn-sm p-0 ${post.my_vote == 1 ? 'text-info' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostLike)}>
|
||||||
<svg class="pointer icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
|
<svg class="icon upvote"><use xlinkHref="#icon-arrow-up"></use></svg>
|
||||||
</div>
|
</button>
|
||||||
<div class={`font-weight-bold text-muted`}>{post.score}</div>
|
<div class={`font-weight-bold text-muted`}>{post.score}</div>
|
||||||
<div className={`pointer ${post.my_vote == -1 ? 'text-danger' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostDisLike)}>
|
<button className={`btn btn-sm p-0 ${post.my_vote == -1 ? 'text-danger' : 'text-muted'}`} onClick={linkEvent(this, this.handlePostDisLike)}>
|
||||||
<svg class="pointer icon downvote"><use xlinkHref="#icon-arrow-down"></use></svg>
|
<svg class="icon downvote"><use xlinkHref="#icon-arrow-down"></use></svg>
|
||||||
</div>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{post.url && isImage(post.url) &&
|
{post.url && isImage(post.url) &&
|
||||||
<span title={i18n.t('expand_here')} class="pointer" onClick={linkEvent(this, this.handleImageExpandClick)}><img class="mx-2 mt-1 float-left img-fluid thumbnail rounded" src={post.url} /></span>
|
<span title={i18n.t('expand_here')} class="pointer" onClick={linkEvent(this, this.handleImageExpandClick)}><img class="mx-2 mt-1 float-left img-fluid thumbnail rounded" src={post.url} /></span>
|
||||||
|
|
Reference in a new issue