mirror of
https://notabug.org/scuti/pleroma-comments
synced 2024-12-23 03:19:46 +05:30
adjust for polls w/ options that have 0 votes
This commit is contained in:
parent
0af974bd3f
commit
965374a7cb
@ -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;
|
||||
}
|
||||
|
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user