aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-23 20:56:37 -0800
committerAdam Soltys <[email protected]>2025-01-23 20:56:37 -0800
commit6592117359b1703db8b90dc69cb58344cc8c2c85 (patch)
treea97732a2efb4cb5ca66301fbe47e77fdf6b2f859 /src/components
parent4e86cc5e1fb534bc23db4631ea2c89d37e7bc58d (diff)
downloadcoinos-ui-6592117359b1703db8b90dc69cb58344cc8c2c85.tar.gz
coinos-ui-6592117359b1703db8b90dc69cb58344cc8c2c85.zip
open link
Diffstat (limited to 'src/components')
-rw-r--r--src/components/InvoiceActions.svelte2
-rw-r--r--src/components/Nostr.svelte36
2 files changed, 26 insertions, 12 deletions
diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte
index 31af3d36..b11a66c3 100644
--- a/src/components/InvoiceActions.svelte
+++ b/src/components/InvoiceActions.svelte
@@ -111,7 +111,7 @@
{:else}
<a href={link} class="block">
<button class="btn grow !w-auto">
- <iconify-icon noobserver icon="ph:wallet-bold" width="32"
+ <iconify-icon noobserver icon="ph:arrow-square-out-bold" width="32"
></iconify-icon>
<div class="my-auto">{t("payments.openLink")}</div>
</button>
diff --git a/src/components/Nostr.svelte b/src/components/Nostr.svelte
index 18d436f3..ad70cd31 100644
--- a/src/components/Nostr.svelte
+++ b/src/components/Nostr.svelte
@@ -143,17 +143,31 @@
<Success />
{:else}
{#if connectUrl}
- <a href={connectUrl}>
- <img
- src={`/qr/${encodeURIComponent(connectUrl)}/raw`}
- class="z-10 border-4 border-white"
- alt="QR"
- />
- <div class="break-all">
- {connectUrl}
- </div>
- </a>
- <button class="btn" onclick={() => copy(connectUrl)}>Copy</button>
+ <div class="space-y-2">
+ <a href={connectUrl} class="block space-y-2">
+ <img
+ src={`/qr/${encodeURIComponent(connectUrl)}/raw`}
+ class="z-10 border-4 border-white"
+ alt="QR"
+ />
+ <div class="break-all">
+ {connectUrl}
+ </div>
+ </a>
+ <a href={connectUrl} class="btn">
+ <iconify-icon
+ noobserver
+ icon="ph:arrow-square-out-bold"
+ width="32"
+ ></iconify-icon>
+ {$t("payments.openLink")}</a
+ >
+ <button class="btn" onclick={() => copy(connectUrl)}>
+ <iconify-icon noobserver icon="ph:copy-bold" width="32"
+ ></iconify-icon>
+ {$t("payments.copy")}</button
+ >
+ </div>
{:else}
{#if $signer?.method === "nsec"}
<input bind:value={nsec} placeholder="nsec..." />