From 6c9290bbfc6f3f484007281f117cc545bc255000 Mon Sep 17 00:00:00 2001 From: b0txec Date: Thu, 20 Aug 2026 09:58:53 +0300 Subject: [PATCH] Center water temperature nameplate title --- web/src/pages/water-temperature/WaterTemperature.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/water-temperature/WaterTemperature.tsx b/web/src/pages/water-temperature/WaterTemperature.tsx index bbd59b4..774d4ef 100644 --- a/web/src/pages/water-temperature/WaterTemperature.tsx +++ b/web/src/pages/water-temperature/WaterTemperature.tsx @@ -144,11 +144,11 @@ function drawNameplate(ctx: CanvasRenderingContext2D, width: number, height: num ctx.fillStyle = '#8f090b'; ctx.fillRect(x, y, titleWidth, titleHeight); - ctx.textAlign = 'left'; + ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.font = `700 ${56 * graphicScale}px Monda`; ctx.fillStyle = '#fff'; - ctx.fillText('ŪDENS TEMPERATŪRA', x + 66 * graphicScale, y + titleHeight / 2); + ctx.fillText('ŪDENS TEMPERATŪRA', x + titleWidth / 2, y + titleHeight / 2); const sourceX = x + titleWidth - sourceWidth; ctx.fillStyle = '#f4f4f4';