Fix #4931: Add popup voter list for comments.

Show the comment's upvote and downvote count when you hover over a
comment's score. For mods, show the list of voters as well.
This commit is contained in:
evazion
2021-11-24 22:13:32 -06:00
parent 594b46a85d
commit a45e6b5cfe
15 changed files with 159 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
<div class="post-votes-tooltip thin-scrollbar">
<div class="post-votes-tooltip thin-scrollbar text-xs">
<div class="text-center text-muted whitespace-nowrap">
+<%= post.up_score %> / -<%= post.down_score.abs %> <%= upvote_ratio %>
</div>

View File

@@ -1,5 +1,4 @@
.post-votes-tooltip {
font-size: var(--text-xs);
max-height: 240px;
.upvote-icon {