fix(nds): remove all top baselines

This commit is contained in:
2026-02-27 02:03:48 +01:00
parent 6dcf03a38a
commit 6264ad41f8
20 changed files with 57 additions and 71 deletions

View File

@@ -87,7 +87,6 @@ onRender((ctx) => {
// text (1 or 2 lines)
ctx.font = "7px NDS7";
ctx.textBaseline = "top";
ctx.fillStyle = "#282828";
const lines = $t(`achievements.${currentAchievement.value}`).split("\n");
@@ -95,7 +94,11 @@ onRender((ctx) => {
lines.length === 1 ? NOTIF_Y + PADDING + 4 : NOTIF_Y + PADDING + 1;
for (let i = 0; i < lines.length; i++) {
ctx.fillText(lines[i]!, x.value + TEXT_X_OFFSET, textY + i * LINE_HEIGHT);
ctx.fillText(
lines[i]!,
x.value + TEXT_X_OFFSET,
textY + i * LINE_HEIGHT + 7,
);
}
}, 200);