Skip to content

Commit c640afe

Browse files
committed
increased spacing
1 parent 93c1463 commit c640afe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/cardGenerator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ export async function generateShareCard(data: ShareCardData): Promise<Blob> {
183183
ctx.fillStyle = "#0f172a"; // Deep slate
184184
ctx.fillText("recode", 155, 120);
185185

186+
const recodeWidth = ctx.measureText("recode").width;
186187
ctx.fillStyle = "#d97706"; // Amber-gold (highly readable on light theme)
187-
ctx.fillText("hive", 280, 120);
188+
ctx.fillText("hive", 155 + recodeWidth + 1, 120);
188189

189190
// Subtitle / Tagline
190191
ctx.font = "500 16px Inter, system-ui, -apple-system, sans-serif";

0 commit comments

Comments
 (0)