fix(nds): remove all top baselines
This commit is contained in:
@@ -101,14 +101,12 @@ onRender((ctx) => {
|
||||
const projectsText = $t("home.projectsAndExperiences");
|
||||
const lines = projectsText.split("\n");
|
||||
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
if (lines.length == 1) {
|
||||
fillTextHCentered(
|
||||
ctx,
|
||||
projectsText,
|
||||
79,
|
||||
42 + getButtonOffset("projects"),
|
||||
42 + getButtonOffset("projects") + 9,
|
||||
140,
|
||||
);
|
||||
} else {
|
||||
@@ -116,23 +114,21 @@ onRender((ctx) => {
|
||||
ctx,
|
||||
lines[0]!,
|
||||
82,
|
||||
36 + getButtonOffset("projects"),
|
||||
36 + getButtonOffset("projects") + 9,
|
||||
140,
|
||||
);
|
||||
fillTextHCentered(
|
||||
ctx,
|
||||
lines[1]!,
|
||||
82,
|
||||
36 + getButtonOffset("projects") + 13,
|
||||
36 + getButtonOffset("projects") + 13 + 9,
|
||||
140,
|
||||
);
|
||||
}
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
// gba thing
|
||||
ctx.font = "10px NDS10";
|
||||
ctx.fillStyle = "#a2a2a2";
|
||||
fillTextHCentered(ctx, $t("home.greeting"), 79, 137, 140);
|
||||
fillTextHCentered(ctx, $t("home.greeting"), 79, 137 + 9, 140);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user