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">
|
<script lang="ts">
|
||||||
import Link, { parseURL } from '$lib/components/input/Link.svelte'
|
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 { Icon, Link as LinkIcon } from 'svelte-hero-icons'
|
||||||
import { optimizeImageURL } from './helpers'
|
import { optimizeImageURL } from './helpers'
|
||||||
|
|
||||||
@@ -60,12 +60,14 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</Material>
|
</Material>
|
||||||
{:else}
|
{:else}
|
||||||
<Link
|
<Button
|
||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="text-slate-700 dark:text-zinc-300 inline-flex items-center gap-1 text-sm"
|
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}
|
{#if richURL}
|
||||||
<div class="flex max-w-full overflow-hidden">
|
<div class="flex max-w-full overflow-hidden">
|
||||||
{richURL.hostname}
|
{richURL.hostname}
|
||||||
@@ -76,7 +78,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
{url}
|
{url}
|
||||||
{/if}
|
{/if}
|
||||||
</Link>
|
</Button>
|
||||||
{#if thumbnail_url && !compact}
|
{#if thumbnail_url && !compact}
|
||||||
<a href={url} target="_blank">
|
<a href={url} target="_blank">
|
||||||
<img
|
<img
|
||||||
|
|||||||
Reference in new issue
Block a user