From 2e0b0b95636b5825bb72f3452f09f452e79e3d60 Mon Sep 17 00:00:00 2001 From: GithubAnon0000 <160563432+GithubAnon0000@users.noreply.github.com> Date: Sun, 27 Apr 2025 18:51:10 +0200 Subject: [PATCH] FIX: incorrect alignment --- ts/routes/graphs/buttons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/routes/graphs/buttons.ts b/ts/routes/graphs/buttons.ts index 9880cf56c..72c8c07ef 100644 --- a/ts/routes/graphs/buttons.ts +++ b/ts/routes/graphs/buttons.ts @@ -172,7 +172,7 @@ export function renderButtons( const tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); tspan2.textContent = `\u200e(${totalCorrect(d).percent}%)`; tspan2.setAttribute("dy", "1em"); - tspan2.setAttribute("dx", "-4em"); // i realized it works. It's probably a coincidence and a hack + tspan2.setAttribute("x", "0"); this.appendChild(tspan); this.appendChild(tspan2);