From 11d7f5c5751d405ab41ca0997f6052d3741ca70b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 28 Apr 2024 15:23:22 -0400 Subject: [PATCH] Smaller border --- commands/edit-image-text/tweet.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index d1368dff..17b76089 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -122,16 +122,16 @@ module.exports = class TweetCommand extends Command { if (userData.label) { const labelData = await request.get(userData.label); const labelImg = await loadImage(labelData.body); - const labelCanvas = createCanvas(30, 30); + const labelCanvas = createCanvas(25, 25); const labelCtx = labelCanvas.getContext('2d'); - this.roundedPath(labelCtx, 3, 0, 0, 30, 30); + this.roundedPath(labelCtx, 3, 0, 0, 25, 25); labelCtx.clip(); labelCtx.fillStyle = '#303336'; - labelCtx.fillRect(0, 0, 30, 30); + labelCtx.fillRect(0, 0, 25, 25); this.roundedPath(labelCtx, 3, 5, 5, 20, 20); labelCtx.clip(); labelCtx.drawImage(labelImg, 5, 5, 20, 20); - ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 30, 30); + ctx.drawImage(labelCanvas, 80 + nameLen + 3 + 20 + 3, 90, 20, 20); } ctx.font = this.client.fonts.get('ChirpRegular.ttf').toCanvasString(17); ctx.fillStyle = '#71767b';