mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-18 06:23:52 +00:00
Extend tappable area (#596)
This commit is contained in:
parent
d5b81dab5c
commit
0a10370e16
1 changed files with 18 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue