mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
FIX: incorrect alignment
This commit is contained in:
parent
0b7140504e
commit
2e0b0b9563
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ export function renderButtons(
|
||||||
const tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
const tspan2 = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
||||||
tspan2.textContent = `\u200e(${totalCorrect(d).percent}%)`;
|
tspan2.textContent = `\u200e(${totalCorrect(d).percent}%)`;
|
||||||
tspan2.setAttribute("dy", "1em");
|
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(tspan);
|
||||||
this.appendChild(tspan2);
|
this.appendChild(tspan2);
|
||||||
|
|
Loading…
Reference in a new issue