Make it easier to tap zap button
Right now the tap target only covered the bolt, now it's bolt+amount
This commit is contained in:
@@ -124,13 +124,6 @@ struct ZapButton: View {
|
|||||||
.foregroundColor(zap_color)
|
.foregroundColor(zap_color)
|
||||||
.font(.footnote.weight(.medium))
|
.font(.footnote.weight(.medium))
|
||||||
})
|
})
|
||||||
.simultaneousGesture(LongPressGesture().onEnded {_ in
|
|
||||||
button.showing_zap_customizer = true
|
|
||||||
})
|
|
||||||
.highPriorityGesture(TapGesture().onEnded {
|
|
||||||
tap()
|
|
||||||
})
|
|
||||||
.accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button"))
|
|
||||||
|
|
||||||
if zaps.zap_total > 0 {
|
if zaps.zap_total > 0 {
|
||||||
Text(verbatim: format_msats_abbrev(zaps.zap_total))
|
Text(verbatim: format_msats_abbrev(zaps.zap_total))
|
||||||
@@ -138,6 +131,13 @@ struct ZapButton: View {
|
|||||||
.foregroundColor(zap_color)
|
.foregroundColor(zap_color)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.accessibilityLabel(NSLocalizedString("Zap", comment: "Accessibility label for zap button"))
|
||||||
|
.simultaneousGesture(LongPressGesture().onEnded {_ in
|
||||||
|
button.showing_zap_customizer = true
|
||||||
|
})
|
||||||
|
.highPriorityGesture(TapGesture().onEnded {
|
||||||
|
tap()
|
||||||
|
})
|
||||||
.sheet(isPresented: $button.showing_zap_customizer) {
|
.sheet(isPresented: $button.showing_zap_customizer) {
|
||||||
CustomizeZapView(state: damus_state, event: event, lnurl: lnurl)
|
CustomizeZapView(state: damus_state, event: event, lnurl: lnurl)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user