From 1a28f8ca94b2c7069d0f2bc555ef98bc8aa50cc9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 28 Dec 2022 14:40:06 -0800 Subject: [PATCH] fix pay button Changelog-Fixed: Fix pay button --- damus/Components/InvoiceView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/damus/Components/InvoiceView.swift b/damus/Components/InvoiceView.swift index 8812813e..21bd0a73 100644 --- a/damus/Components/InvoiceView.swift +++ b/damus/Components/InvoiceView.swift @@ -28,7 +28,7 @@ struct InvoiceView: View { .foregroundColor(colorScheme == .light ? .white : .black) } } - .buttonStyle(.bordered) + //.buttonStyle(.bordered) .onTapGesture { // Temporary solution so that the "pay" button can be clicked (Yes we need an empty tap gesture) } @@ -50,10 +50,12 @@ struct InvoiceView: View { Text("\(invoice.amount / 1000) sats") .font(.title) PayButton - .zIndex(5.0) + .frame(height: 50) + .zIndex(10.0) } - .padding() - }.sheet(isPresented: $showingSelectWallet, onDismiss: {showingSelectWallet = false}) { + .padding(30) + } + .sheet(isPresented: $showingSelectWallet, onDismiss: {showingSelectWallet = false}) { SelectWalletView(showingSelectWallet: $showingSelectWallet, invoice: $inv) } }