misc: change link design
This commit is contained in:
1 parent
92e6c9ef9f
commit
430eba300a
1 file changed
+6
-4
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Link, { parseURL } from '$lib/components/input/Link.svelte'
|
||||
import { Material } from 'mono-svelte'
|
||||
import { Button, Material } from 'mono-svelte'
|
||||
import { Icon, Link as LinkIcon } from 'svelte-hero-icons'
|
||||
import { optimizeImageURL } from './helpers'
|
||||
|
||||
@@ -60,12 +60,14 @@
|
||||
{/if}
|
||||
</Material>
|
||||
{:else}
|
||||
<Link
|
||||
<Button
|
||||
href={url}
|
||||
target="_blank"
|
||||
class="text-slate-700 dark:text-zinc-300 inline-flex items-center gap-1 text-sm"
|
||||
size="sm"
|
||||
color="ghost"
|
||||
>
|
||||
<Icon src={LinkIcon} size="14" mini slot="icon" class="flex-shrink-0" />
|
||||
<Icon src={LinkIcon} size="14" mini slot="prefix" class="flex-shrink-0" />
|
||||
{#if richURL}
|
||||
<div class="flex max-w-full overflow-hidden">
|
||||
{richURL.hostname}
|
||||
@@ -76,7 +78,7 @@
|
||||
{:else}
|
||||
{url}
|
||||
{/if}
|
||||
</Link>
|
||||
</Button>
|
||||
{#if thumbnail_url && !compact}
|
||||
<a href={url} target="_blank">
|
||||
<img
|
||||
|
||||
Reference in new issue
Block a user