From 32b18ca0c42776470bce24b35a2a8a34997254c4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Apr 2024 15:18:04 -0400 Subject: [PATCH] Fix --- commands/edit-image-text/tweet.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index ae20721a..409697d1 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -128,10 +128,15 @@ module.exports = class TweetCommand extends Command { labelCtx.clip(); labelCtx.drawImage(labelImg, 5, 5, 20, 20); this.roundedPath(labelCtx, 3, 0, 0, 30, 30); + labelCtx.save(); + labelCtx.beginPath(); + labelCtx.rect(0, 0, 30, 30); + labelCtx.clip(); labelCtx.strokeStyle = '#303336'; labelCtx.lineWidth = 5; labelCtx.stroke(); - ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 20, 20); + labelCtx.restore(); + ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 30, 30); } ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(17); ctx.fillStyle = '#71767b';