fix: weird transparency

This commit is contained in:
Xyphyn committed 2023-09-20 20:56:22 -07:00
1 parent b6788c7fc1
commit bda818328e
1 file changed
-14
-14
View File
@@ -10,8 +10,6 @@
return undefined
}
}
$: richURL = parseURL(href)
</script>
<a {href} class="{highlight ? 'text-blue-500' : ''} hover:underline max-w-full">
@@ -23,19 +21,7 @@
: ''} {$$props.class} text-transparent bg-clip-text bg-gradient-to-r
from-blue-500 via-blue-500 to-blue-500/0"
>
{#if richURL}
<span class="opacity-60">
{richURL.protocol}//
</span>
<span class="font-medium">
{richURL.hostname}
</span>
<span class="opacity-60">
{richURL.pathname}
</span>
{:else}
{href}
{/if}
</span>
</slot>
</a>