fix(nds): remove all top baselines
This commit is contained in:
@@ -99,7 +99,6 @@ const handleActivateA = async () => {
|
||||
|
||||
onRender((ctx) => {
|
||||
ctx.font = "10px NDS10";
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
assets.background.draw(ctx, 0, 0);
|
||||
|
||||
@@ -112,7 +111,7 @@ onRender((ctx) => {
|
||||
// title
|
||||
ctx.fillStyle = "#282828";
|
||||
assets.user.nameTitle.draw(ctx, x + 12, y);
|
||||
fillTextHCentered(ctx, title, x + 12, y + 4, 169);
|
||||
fillTextHCentered(ctx, title, x + 12, y + 4 + 9, 169);
|
||||
|
||||
// field
|
||||
ctx.fillStyle = "#fbfbfb";
|
||||
@@ -123,7 +122,11 @@ onRender((ctx) => {
|
||||
);
|
||||
|
||||
for (let i = 0; i < text.length; i += 1, x += 16) {
|
||||
ctx.fillText(text[i]!, x + 20, y + assets.user.nameTitle.rect.height + 3);
|
||||
ctx.fillText(
|
||||
text[i]!,
|
||||
x + 20,
|
||||
y + assets.user.nameTitle.rect.height + 3 + 9,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user