diff --git a/pleroma-comments.css b/pleroma-comments.css index 12d24c7..e7667e1 100644 --- a/pleroma-comments.css +++ b/pleroma-comments.css @@ -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; } diff --git a/pleroma-comments.lua b/pleroma-comments.lua index e43b34e..c71bddc 100644 --- a/pleroma-comments.lua +++ b/pleroma-comments.lua @@ -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$