diff --git a/render.js b/render.js index 98751cb..0fcd72d 100644 --- a/render.js +++ b/render.js @@ -151,10 +151,11 @@ function render(artist, album, title, songStart, songEnd, pauseSpot, paused) { if (errorType === 1) color = '\033[43;37m'; if (errorType === 2) color = '\033[44;37m'; + let text = ` ${symbol} ${errorText} `; texts.push({ - value: ` ${symbol} ${errorText} `, - x: 4, - y: Math.round(3 * outCirc(Math.min(errorTimer, 1))), + value: ' '.repeat(text.length) + text, + x: -text.length * 2 + Math.round((text.length + 3) * outCirc(Math.min(errorTimer, 1))), + y: 3, color: color }); }