fix: outgoing link should always have squiggy and underline regardless of prose

This commit is contained in:
dusk 2025-02-07 00:01:09 +03:00
parent a90bf50558
commit 1aa91543fe
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -61,6 +61,6 @@
{#if note.hasQuote}<Token v="-contains quote-" keywd small/>{/if} {#if note.hasQuote}<Token v="-contains quote-" keywd small/>{/if}
{#each note.outgoingLinks ?? [] as {name, link}} {#each note.outgoingLinks ?? [] as {name, link}}
{@const color = outgoingLinkColors[name]} {@const color = outgoingLinkColors[name]}
<span class="text-sm"><Token v="(" punct/><a style="color: {color};{getTextShadowStyle(color)}" href={getOutgoingLink(name, link)}>{name}</a><Token v=")" punct/></span> <span class="text-sm"><Token v="(" punct/><a class="hover:motion-safe:animate-squiggle hover:underline" style="color: {color};{getTextShadowStyle(color)}" href={getOutgoingLink(name, link)}>{name}</a><Token v=")" punct/></span>
{/each} {/each}
</div> </div>