fix: weird transparency
This commit is contained in:
1 parent
b6788c7fc1
commit
bda818328e
1 file changed
-14
@@ -10,8 +10,6 @@
|
|||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$: richURL = parseURL(href)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a {href} class="{highlight ? 'text-blue-500' : ''} hover:underline max-w-full">
|
<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
|
: ''} {$$props.class} text-transparent bg-clip-text bg-gradient-to-r
|
||||||
from-blue-500 via-blue-500 to-blue-500/0"
|
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}
|
{href}
|
||||||
{/if}
|
|
||||||
</span>
|
</span>
|
||||||
</slot>
|
</slot>
|
||||||
</a>
|
</a>
|
||||||
Reference in new issue
Block a user