Fix custom zap button hitboxes

Suggested-by: eric
This commit is contained in:
William Casarin
2023-04-24 10:51:39 -07:00
parent f5cdd4a159
commit d667a9d8f7

View File

@@ -116,7 +116,6 @@ struct CustomizeZapView: View {
Button(action: action) { Button(action: action) {
let fmt = format_msats_abbrev(Int64(zapAmountItem.amount) * 1000) let fmt = format_msats_abbrev(Int64(zapAmountItem.amount) * 1000)
Text("\(zapAmountItem.icon)\n\(fmt)") Text("\(zapAmountItem.icon)\n\(fmt)")
}
.contentShape(Rectangle()) .contentShape(Rectangle())
.font(.headline) .font(.headline)
.frame(width: 70, height: 70) .frame(width: 70, height: 70)
@@ -126,6 +125,7 @@ struct CustomizeZapView: View {
.overlay(RoundedRectangle(cornerRadius: 15) .overlay(RoundedRectangle(cornerRadius: 15)
.stroke(DamusColors.purple.opacity(custom_amount_sats == zapAmountItem.amount ? 1.0 : 0.0), lineWidth: 2)) .stroke(DamusColors.purple.opacity(custom_amount_sats == zapAmountItem.amount ? 1.0 : 0.0), lineWidth: 2))
} }
}
var CustomZapTextField: some View { var CustomZapTextField: some View {
VStack(alignment: .center, spacing: 0) { VStack(alignment: .center, spacing: 0) {