fix: issue with white-space around links

This commit is contained in:
Stefan Imhoff
2024-09-11 18:59:28 +02:00
parent 985d8b21c0
commit 33e5e1f8e0
2 changed files with 2 additions and 6 deletions

View File

@@ -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}><slot /></a
>
<slot />
</a>

View File

@@ -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}><slot /></Link
>
<slot />
</Link>