From 29eb1dfcdcf570a192bbee0cdeadaca3c2221cef Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Wed, 3 Jun 2026 23:55:52 +0200 Subject: [PATCH] feat: show percentage next to progress bar in month header --- site/src/pages/support/index.astro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/src/pages/support/index.astro b/site/src/pages/support/index.astro index 7451555..d86caf4 100644 --- a/site/src/pages/support/index.astro +++ b/site/src/pages/support/index.astro @@ -424,13 +424,13 @@ function renderBudget() { header.innerHTML = ` ${monthLabel(ym)} ${pct !== null - ? `
` + ? `
${pct}%
` : ``} - +${fmtEur(donated)} + +${fmtEur(donated)} / - −${fmtEur(spent)} + −${fmtEur(spent)} / - ${balance >= 0 ? '+' : '−'}${fmtEur(Math.abs(balance))} + ${balance >= 0 ? '+' : '−'}${fmtEur(Math.abs(balance))} ${open ? '▲' : '▼'}`; header.addEventListener('click', () => { if (expandedMonths.has(ym)) expandedMonths.delete(ym); else expandedMonths.add(ym);