From d667a9d8f7eed846ee789634d0fff0cb4a6b63cf Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 24 Apr 2023 10:51:39 -0700 Subject: [PATCH] Fix custom zap button hitboxes Suggested-by: eric --- damus/Views/Zaps/CustomizeZapView.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/damus/Views/Zaps/CustomizeZapView.swift b/damus/Views/Zaps/CustomizeZapView.swift index 612a71ca..83c36e2f 100644 --- a/damus/Views/Zaps/CustomizeZapView.swift +++ b/damus/Views/Zaps/CustomizeZapView.swift @@ -116,15 +116,15 @@ struct CustomizeZapView: View { Button(action: action) { let fmt = format_msats_abbrev(Int64(zapAmountItem.amount) * 1000) Text("\(zapAmountItem.icon)\n\(fmt)") + .contentShape(Rectangle()) + .font(.headline) + .frame(width: 70, height: 70) + .foregroundColor(fontColor()) + .background(custom_amount_sats == zapAmountItem.amount ? fillColor() : DamusColors.adaptableGrey) + .cornerRadius(15) + .overlay(RoundedRectangle(cornerRadius: 15) + .stroke(DamusColors.purple.opacity(custom_amount_sats == zapAmountItem.amount ? 1.0 : 0.0), lineWidth: 2)) } - .contentShape(Rectangle()) - .font(.headline) - .frame(width: 70, height: 70) - .foregroundColor(fontColor()) - .background(custom_amount_sats == zapAmountItem.amount ? fillColor() : DamusColors.adaptableGrey) - .cornerRadius(15) - .overlay(RoundedRectangle(cornerRadius: 15) - .stroke(DamusColors.purple.opacity(custom_amount_sats == zapAmountItem.amount ? 1.0 : 0.0), lineWidth: 2)) } var CustomZapTextField: some View {