diff --git a/static/style.css b/static/style.css index 851d88b..b8633d2 100644 --- a/static/style.css +++ b/static/style.css @@ -988,6 +988,7 @@ a.search_subreddit:hover { .most_voted { opacity: 0.45; + width: 100%; } /* Used only for text post preview */ diff --git a/templates/utils.html b/templates/utils.html index d5f3f69..8e77d26 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -311,8 +311,8 @@ {% when Some with (poll) %} {% let widest = poll.most_votes() %}
- {{ poll.total_vote_count }} votes - {{ poll.voting_end_timestamp.0 }} + {{ poll.total_vote_count }} votes, + {{ poll.voting_end_timestamp.0 }} {% for option in poll.poll_options %}
{# Posts without vote_count (all open polls) will show up without votes. @@ -320,13 +320,13 @@ {% match option.vote_count %} {% when Some with (vote_count) %} {% if vote_count.eq(widest) || widest == 0 %} -
+
{% else %}
{% endif %} {{ vote_count }} {% when None %} -
+
{% endmatch %} {{ option.text }}