adjust for polls w/ options that have 0 votes

This commit is contained in:
scuti 2024-11-28 20:40:52 -08:00
parent 0af974bd3f
commit 965374a7cb
2 changed files with 3 additions and 3 deletions

View File

@ -98,8 +98,8 @@
.pleroma-comment .bar {
padding-top: 0.5em;
padding-bottom:0.5em;
padding-left:1em;
margin-right:1em;
/* for options with 0% or small %s need at least 2 to bump away label */
margin-right:2em;
/* Prevent text wrapping for the bar width */
white-space: nowrap;
}

View File

@ -139,7 +139,7 @@ function write_comments(pleroma_posts, instance, show_avatars)
local bar_template = [[
<div class="bar-container">
<div class="bar" style="width: $pct$%;">
$pct$%
<span>$pct$%</span>
</div>
<div class="bar-text">
$label$