From f65474a8edd778de15a1c1f208552bf20cd1a844 Mon Sep 17 00:00:00 2001 From: pablof7z Date: Sun, 9 Apr 2023 15:08:15 +0300 Subject: [PATCH] add support for mobile (non-webln) zaps --- src/NostrNote.svelte | 46 +++++++++++++++++++++++--------------- src/ZapAmountButton.svelte | 26 ++++++++++++++++----- 2 files changed, 48 insertions(+), 24 deletions(-) diff --git a/src/NostrNote.svelte b/src/NostrNote.svelte index 704ca08..2b961bb 100644 --- a/src/NostrNote.svelte +++ b/src/NostrNote.svelte @@ -14,6 +14,7 @@ let npub; let zappingIt; let hovering; + let mobilePR; let zappedAmount = 0; @@ -114,26 +115,35 @@ } flex items-center absolute ml-5 mt-10 z-10"> {#if zappingIt} -
-
- + {#if mobilePR} +
+ Open in wallet +
-
- + {:else} +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
-
- -
-
- -
-
- -
-
- -
-
+ {/if} {/if}
diff --git a/src/ZapAmountButton.svelte b/src/ZapAmountButton.svelte index fcdce89..8b76005 100644 --- a/src/ZapAmountButton.svelte +++ b/src/ZapAmountButton.svelte @@ -1,5 +1,5 @@