fix(nds): remove all top baselines
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user