Fix About screen link labels not being aligned
This commit is contained in:
parent
e94bee4fc8
commit
db534e5993
|
@ -59,7 +59,12 @@ struct AboutView: View {
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Label("Get Support", systemImage: "envelope")
|
Label {
|
||||||
|
Text("Get Support")
|
||||||
|
} icon: {
|
||||||
|
Image(systemName: "envelope")
|
||||||
|
.foregroundStyle(.tint)
|
||||||
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
if isGettingLogData {
|
if isGettingLogData {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
|
@ -75,7 +80,6 @@ struct AboutView: View {
|
||||||
Label("Issue Tracker", systemImage: "checklist")
|
Label("Issue Tracker", systemImage: "checklist")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.labelStyle(AboutLinksLabelStyle())
|
|
||||||
.appGroupedListRowBackground()
|
.appGroupedListRowBackground()
|
||||||
}
|
}
|
||||||
.listStyle(.insetGrouped)
|
.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 {
|
struct AboutView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
AboutView()
|
AboutView()
|
||||||
|
|
Loading…
Reference in New Issue