fix: add contentShape to all tappable rows so entire row area registers taps
Adds .contentShape(Rectangle()) or .contentShape(Capsule()) to 11 buttons, NavigationLinks, and onTapGesture handlers across 8 files where only the visible content (text/icons) was receiving taps instead of the full row. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -318,6 +318,7 @@ struct PollDetailView: View {
|
||||
selectedTrip = trip
|
||||
} label: {
|
||||
TripPreviewCard(trip: trip, index: index + 1)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ struct PollsListView: View {
|
||||
ForEach(polls) { poll in
|
||||
NavigationLink(value: poll) {
|
||||
PollRowView(poll: poll)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user