Fix loss chart caption baseline

This commit is contained in:
Meta Vens 2026-04-24 17:14:04 +01:00
commit 2d712baf31
2 changed files with 4 additions and 2 deletions

View file

@ -547,7 +547,8 @@ function renderLossChart(): void {
if (losses.length === 0) {
context.fillStyle = "rgba(255,255,255,0.28)";
context.font = "14px sans-serif";
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 28);
context.textBaseline = "top";
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 16);
return;
}
const minLoss = Math.min(...losses);

View file

@ -444,7 +444,8 @@ function renderLossChart() {
if (losses.length === 0) {
context.fillStyle = "rgba(255,255,255,0.28)";
context.font = "14px sans-serif";
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 28);
context.textBaseline = "top";
context.fillText("Loss curve wakes up once the solver starts moving.", 18, 16);
return;
}
const minLoss = Math.min(...losses);