mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Pad out the side
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user