Extend tappable area (#596)

This commit is contained in:
Sean Goldin 2023-02-01 23:34:12 -06:00 committed by GitHub
parent d5b81dab5c
commit 0a10370e16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,15 +23,24 @@ struct AccountSettingsView: View {
var body: some View { var body: some View {
Form { Form {
Section { Section {
Label("account.action.edit-info", systemImage: "pencil") Button {
.onTapGesture {
isEditingAccount = true isEditingAccount = true
} label: {
Label("account.action.edit-info", systemImage: "pencil")
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
} }
.buttonStyle(.plain)
if currentInstance.isFiltersSupported { if currentInstance.isFiltersSupported {
Label("account.action.edit-filters", systemImage: "line.3.horizontal.decrease.circle") Button {
.onTapGesture {
isEditingFilters = true isEditingFilters = true
} label: {
Label("account.action.edit-filters", systemImage: "line.3.horizontal.decrease.circle")
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
} }
.buttonStyle(.plain)
} }
if let subscription = pushNotifications.subscriptions.first(where: { $0.account.token == appAccount.oauthToken }) { if let subscription = pushNotifications.subscriptions.first(where: { $0.account.token == appAccount.oauthToken }) {
NavigationLink(destination: PushNotificationsView(subscription: subscription)) { NavigationLink(destination: PushNotificationsView(subscription: subscription)) {
@ -53,6 +62,7 @@ struct AccountSettingsView: View {
} }
} label: { } label: {
Text("account.action.logout") Text("account.action.logout")
.frame(maxWidth: .infinity)
} }
} }
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor)