From 33e5e1f8e0143e2a63ae1986e100277343428419 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Wed, 11 Sep 2024 18:59:28 +0200 Subject: [PATCH] fix: issue with white-space around links --- src/components/Link.astro | 4 +--- src/components/TextLink.astro | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/Link.astro b/src/components/Link.astro index e78aafb..eef1528 100644 --- a/src/components/Link.astro +++ b/src/components/Link.astro @@ -16,7 +16,5 @@ const isExternal = (href as string).startsWith('http'); href={href} rel={isExternal ? 'nofollow noopener noreferrer' : undefined} target={isExternal ? '_blank' : undefined} - {...props} + {...props}> - - diff --git a/src/components/TextLink.astro b/src/components/TextLink.astro index 93f0935..3002a1b 100644 --- a/src/components/TextLink.astro +++ b/src/components/TextLink.astro @@ -15,7 +15,5 @@ const { class: className, ...props } = Astro.props; 'inline font-semibold text-shibui-950 underline decoration-shibui-900/20 decoration-4 underline-offset-auto no-common-ligatures hover:!decoration-accent focus:!decoration-accent dark:text-shibui-200/[0.87] dark:decoration-shibui-100/20', className, ]} - {...props} + {...props}> - -