From 965374a7cbdd7bdd4eb1fc561388fa1e4c77e1de Mon Sep 17 00:00:00 2001 From: scuti Date: Thu, 28 Nov 2024 20:40:52 -0800 Subject: [PATCH] adjust for polls w/ options that have 0 votes --- pleroma-comments.css | 4 ++-- pleroma-comments.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = [[
- $pct$% + $pct$%
$label$