Hover on upvote / downvote on post-listing scores.

This commit is contained in:
Dessalines 2020-03-08 18:54:52 -04:00
parent e2b8d2d702
commit e7ba29c3c6

View file

@ -464,22 +464,29 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<li className="list-inline-item"></li>
{this.state.upvotes !== this.state.score && (
<>
<li className="list-inline-item">
<span className="text-muted">
<svg class="small icon icon-inline mr-1">
<use xlinkHref="#icon-arrow-up"></use>
</svg>
{this.state.upvotes}
</span>
</li>
<li className="list-inline-item">
<span className="text-muted">
<svg class="small icon icon-inline mr-1">
<use xlinkHref="#icon-arrow-down"></use>
</svg>
{this.state.downvotes}
</span>
</li>
<span
class="unselectable pointer mr-2"
data-tippy-content={i18n.t('number_of_points', {
count: this.state.score,
})}
>
<li className="list-inline-item">
<span className="text-muted">
<svg class="small icon icon-inline mr-1">
<use xlinkHref="#icon-arrow-up"></use>
</svg>
{this.state.upvotes}
</span>
</li>
<li className="list-inline-item">
<span className="text-muted">
<svg class="small icon icon-inline mr-1">
<use xlinkHref="#icon-arrow-down"></use>
</svg>
{this.state.downvotes}
</span>
</li>
</span>
<li className="list-inline-item"></li>
</>
)}