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';