Pad out the side

This commit is contained in:
Daniel Odendahl Jr
2018-09-12 16:32:03 +00:00
parent 0159ec963f
commit 506e1e2b79
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ module.exports = class NikeAdCommand extends Command {
ctx.font = `${fontSize}px Noto`;
ctx.fillStyle = 'white';
ctx.textAlign = 'center';
const lines = wrapText(ctx, `Believe in ${something}. Even if it means ${sacrifice}.`, data.width);
const lines = wrapText(ctx, `Believe in ${something}. Even if it means ${sacrifice}.`, data.width - 20);
const initial = data.height / 2;
for (let i = 0; i < lines.length; i++) {
const textHeight = initial + (i * fontSize) + (i * 10);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "91.1.3",
"version": "91.1.4",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {