From 5b4b252c35b74855aa7ac9726c7ecea73adffa9c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 4 Apr 2025 19:58:36 -0600 Subject: [PATCH] fedimbed: poll visual parity with nitter polls --- src/modules/fedimbed.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 5f7450e..041c02c 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1285,11 +1285,11 @@ async function processUrl(msg, url, spoiler = false, command = false) { poll.options .map((o) => { const percent = o.count / poll.total; - const bar = Math.round(percent * 30); + const bar = Math.round(percent * 32); - return `**${o.name}** (${o.count}, ${Math.round(percent * 100)}%)\n\`[${"=".repeat(bar)}${" ".repeat( - 30 - bar - )}]\``; + return `**${o.name}** (${o.count}, ${Math.round(percent * 100)}%)\n\`${"\u2588".repeat(bar)}${" ".repeat( + 32 - bar + )}\``; }) .join("\n\n") + `\n\n${poll.total} votes \u2022 Ends `, });