From 7d9a00cc4e2ef9cfdcf1bf7dcfe059c4f564c3c8 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 28 Feb 2026 01:03:42 +0100 Subject: [PATCH] [fix](trx-frontend-http): move overview scales to the right Co-authored-by: OpenAI Codex Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 9c72c46..93d01d3 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -630,7 +630,7 @@ function drawOverviewSignalHistory(ctx, w, h, isLight) { ctx.lineWidth = 1; ctx.font = "11px sans-serif"; ctx.fillStyle = isLight ? "rgba(51, 65, 85, 0.72)" : "rgba(203, 213, 225, 0.72)"; - ctx.textAlign = "left"; + ctx.textAlign = "right"; ctx.textBaseline = "middle"; for (const marker of gridMarkers) { const y = toY(marker.val); @@ -638,7 +638,7 @@ function drawOverviewSignalHistory(ctx, w, h, isLight) { ctx.moveTo(0, y); ctx.lineTo(w, y); ctx.stroke(); - ctx.fillText(marker.label, 6, Math.max(8, Math.min(h - 8, y))); + ctx.fillText(marker.label, w - 6, Math.max(8, Math.min(h - 8, y))); } ctx.beginPath();