mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +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 {
|
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)
|
||||||
|
|
Loading…
Reference in a new issue