Hover on upvote / downvote on post-listing scores.
This commit is contained in:
parent
cd99b1bc1e
commit
134e8c1c94
1 changed files with 23 additions and 16 deletions
7
ui/src/components/post-listing.tsx
vendored
7
ui/src/components/post-listing.tsx
vendored
|
@ -464,6 +464,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<li className="list-inline-item">•</li>
|
<li className="list-inline-item">•</li>
|
||||||
{this.state.upvotes !== this.state.score && (
|
{this.state.upvotes !== this.state.score && (
|
||||||
<>
|
<>
|
||||||
|
<span
|
||||||
|
class="unselectable pointer mr-2"
|
||||||
|
data-tippy-content={i18n.t('number_of_points', {
|
||||||
|
count: this.state.score,
|
||||||
|
})}
|
||||||
|
>
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<span className="text-muted">
|
<span className="text-muted">
|
||||||
<svg class="small icon icon-inline mr-1">
|
<svg class="small icon icon-inline mr-1">
|
||||||
|
@ -480,6 +486,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
{this.state.downvotes}
|
{this.state.downvotes}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
</span>
|
||||||
<li className="list-inline-item">•</li>
|
<li className="list-inline-item">•</li>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Reference in a new issue