[fix](trx-frontend-http): move overview scales to the right

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 01:03:42 +01:00
parent 4e79820e14
commit 7d9a00cc4e
@@ -630,7 +630,7 @@ function drawOverviewSignalHistory(ctx, w, h, isLight) {
ctx.lineWidth = 1; ctx.lineWidth = 1;
ctx.font = "11px sans-serif"; ctx.font = "11px sans-serif";
ctx.fillStyle = isLight ? "rgba(51, 65, 85, 0.72)" : "rgba(203, 213, 225, 0.72)"; ctx.fillStyle = isLight ? "rgba(51, 65, 85, 0.72)" : "rgba(203, 213, 225, 0.72)";
ctx.textAlign = "left"; ctx.textAlign = "right";
ctx.textBaseline = "middle"; ctx.textBaseline = "middle";
for (const marker of gridMarkers) { for (const marker of gridMarkers) {
const y = toY(marker.val); const y = toY(marker.val);
@@ -638,7 +638,7 @@ function drawOverviewSignalHistory(ctx, w, h, isLight) {
ctx.moveTo(0, y); ctx.moveTo(0, y);
ctx.lineTo(w, y); ctx.lineTo(w, y);
ctx.stroke(); 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(); ctx.beginPath();