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

@@ -234,8 +234,6 @@ onMounted(() => {
});
onRender((ctx) => {
ctx.textBaseline = "top";
ctx.save();
ctx.globalAlpha = intro.frameOpacity;
ctx.translate(BOARD_X, BOARD_Y + intro.frameOffsetY);
@@ -281,7 +279,7 @@ onRender((ctx) => {
ctx,
tile.value.toString(),
tile.x + 1,
tile.y + (tile.value <= 2048 ? 9 : 10),
tile.y + (tile.value <= 2048 ? 9 + 9 : 10 + 7),
TILE_SIZE,
);
ctx.restore();

View File

@@ -134,7 +134,6 @@ const handleActivateA = () => {
onRender((ctx) => {
ctx.font = "10px NDS10";
ctx.textBaseline = "top";
const drawButton = (
title: string,
@@ -162,7 +161,7 @@ onRender((ctx) => {
ctx.fillStyle = "#282828";
const descKey = key === "_3dMode" ? "3dDescription" : "2dDescription";
const text = $t(`settings.options.renderingMode.${descKey}`);
fillTextHCenteredMultiline(ctx, text, 0, y, buttonWidth, 15);
fillTextHCenteredMultiline(ctx, text, 0, 20 + 9, buttonWidth, 15);
ctx.translate(0, animation[key].headerOffsetY);
headerImg.draw(ctx, 0, 0, colorOpts);