From 200b2ef9b33df600d5816d643aeec90d4227b933 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 09:57:57 +0000 Subject: [PATCH] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index d72a0c0..1c1bbe6 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -6,6 +6,7 @@ interface SvgTextLogoProps { fontSize?: number; fontWeight?: number | string; letterSpacing?: number; + fill?: string; } const SvgTextLogo: React.FC = ({ @@ -14,27 +15,28 @@ const SvgTextLogo: React.FC = ({ fontSize = 48, fontWeight = 700, letterSpacing = 0, + fill = 'currentColor', }) => { - const svgWidth = text.length * (fontSize * 0.6) + 40; - const svgHeight = fontSize + 20; + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = charWidth * textLength + letterSpacing * (textLength - 1); + const height = fontSize * 1.2; return ( {text}