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 {
Form {
Section {
Label("account.action.edit-info", systemImage: "pencil")
.onTapGesture {
isEditingAccount = true
}
Button {
isEditingAccount = true
} label: {
Label("account.action.edit-info", systemImage: "pencil")
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
if currentInstance.isFiltersSupported {
Label("account.action.edit-filters", systemImage: "line.3.horizontal.decrease.circle")
.onTapGesture {
isEditingFilters = true
}
Button {
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 }) {
NavigationLink(destination: PushNotificationsView(subscription: subscription)) {
@ -53,6 +62,7 @@ struct AccountSettingsView: View {
}
} label: {
Text("account.action.logout")
.frame(maxWidth: .infinity)
}
}
.listRowBackground(theme.primaryBackgroundColor)