From 09fceca2f9601f210148cd3cb2711fb537c272ca Mon Sep 17 00:00:00 2001 From: "exe.dev user" Date: Wed, 15 Apr 2026 03:02:48 +0000 Subject: [PATCH] freenslens: increased height of single-line logos --- site/freelens-logo/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/freelens-logo/script.js b/site/freelens-logo/script.js index 0404e63..7be5111 100644 --- a/site/freelens-logo/script.js +++ b/site/freelens-logo/script.js @@ -43,6 +43,7 @@ const availableWidth = width - PADDING * 2; const availableHeight = height - PADDING * 2; const halfHeight = availableHeight / 2; + const threeQuartersHeight = availableHeight * 3 / 4; ctx.fillStyle = 'white'; ctx.textAlign = 'center'; @@ -57,7 +58,7 @@ ctx.font = `bold ${fontSize}px sans-serif`; ctx.fillText(lower, width / 2, height - PADDING - halfHeight / 2 + 4); } else { - let fontSize = fitText(upper, availableWidth, halfHeight); + let fontSize = fitText(upper, availableWidth, threeQuartersHeight); ctx.font = `bold ${fontSize}px sans-serif`; ctx.fillText(upper, width / 2, height / 2); }