From b763ecd99f09373c69770717025e84e739a8df3b Mon Sep 17 00:00:00 2001 From: Silberengel Date: Sat, 5 Apr 2025 11:47:23 +0200 Subject: [PATCH] Refactored a bit. Changed a tags to buttons that look like hyperlinks, to preserve normal button functionality. --- src/lib/components/Login.svelte | 2 +- src/lib/components/util/CardActions.svelte | 18 +++++++++--------- src/lib/components/util/CopyToClipboard.svelte | 4 ++-- src/lib/components/util/Profile.svelte | 10 +++++----- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/lib/components/Login.svelte b/src/lib/components/Login.svelte index 2d77763..1456149 100644 --- a/src/lib/components/Login.svelte +++ b/src/lib/components/Login.svelte @@ -50,7 +50,7 @@ @@ -157,7 +157,7 @@
{#if image}
- + Publication cover image for {title}
{/if}
diff --git a/src/lib/components/util/CopyToClipboard.svelte b/src/lib/components/util/CopyToClipboard.svelte index 9e72c79..63f1aa7 100644 --- a/src/lib/components/util/CopyToClipboard.svelte +++ b/src/lib/components/util/CopyToClipboard.svelte @@ -18,10 +18,10 @@ } - + diff --git a/src/lib/components/util/Profile.svelte b/src/lib/components/util/Profile.svelte index fd23c9f..a44cba1 100644 --- a/src/lib/components/util/Profile.svelte +++ b/src/lib/components/util/Profile.svelte @@ -46,10 +46,12 @@ function shortenNpub(long: string|undefined) { class='h-6 w-6 cursor-pointer' src={pfp} alt={username} + id="profile-avatar" /> {#key username || tag} @@ -70,15 +72,13 @@ function shortenNpub(long: string|undefined) { {#if isNav}
  • - Sign out - +
  • {:else}