Fix About screen link labels not being aligned

This commit is contained in:
Shadowfacts 2024-04-13 23:19:28 -04:00
parent e94bee4fc8
commit db534e5993
1 changed files with 6 additions and 11 deletions

View File

@ -59,7 +59,12 @@ struct AboutView: View {
}
} label: {
HStack {
Label("Get Support", systemImage: "envelope")
Label {
Text("Get Support")
} icon: {
Image(systemName: "envelope")
.foregroundStyle(.tint)
}
Spacer()
if isGettingLogData {
ProgressView()
@ -75,7 +80,6 @@ struct AboutView: View {
Label("Issue Tracker", systemImage: "checklist")
}
}
.labelStyle(AboutLinksLabelStyle())
.appGroupedListRowBackground()
}
.listStyle(.insetGrouped)
@ -174,15 +178,6 @@ private struct MailSheet: UIViewControllerRepresentable {
}
}
private struct AboutLinksLabelStyle: LabelStyle {
func makeBody(configuration: Configuration) -> some View {
HStack(alignment: .lastTextBaseline, spacing: 8) {
configuration.icon
configuration.title
}
}
}
struct AboutView_Previews: PreviewProvider {
static var previews: some View {
AboutView()