From 12917d4db719930b4f6950e3c86b78f3f6713a5c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 26 Apr 2024 18:48:34 -0400 Subject: [PATCH] Fix height --- commands/edit-image-text/tweet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index e7a99518..81c48a8e 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -214,7 +214,7 @@ module.exports = class TweetCommand extends Command { const line = wrapped[currentLine]; const lineNoEmoji = line.split(emojiRegex()); const lineEmoji = line.match(emojiRegex()); - const height = 23 + 9; + const height = 23 + 5; if (!lineEmoji) { ctx.fillText(line, x, y + (height * currentLine)); continue; @@ -239,7 +239,7 @@ module.exports = class TweetCommand extends Command { } fillHashtags(ctx, wrappedText, x, y, emojiSize) { - const height = 23 + 9; + const height = 23 + 5; let currentLine = 0; for (const line of wrappedText) { const words = line.split(' ');