Slightly increase cell height

This commit is contained in:
Skitty 2022-09-04 15:10:47 -05:00
parent f0a6c2d708
commit 33e5b4e518
No known key found for this signature in database
GPG key ID: B2B1A65BF534A127
5 changed files with 19 additions and 5 deletions

View file

@ -36,6 +36,7 @@ struct SettingsSourceListView: View {
.font(.caption)
.foregroundColor(.gray)
}
.padding(.vertical, 2)
.contextMenu {
Button {
navModel.selectedSourceList = sourceList

View file

@ -32,6 +32,7 @@ struct InstalledSourceView: View {
Text("by \(installedSource.author)")
.foregroundColor(.secondary)
}
.padding(.vertical, 2)
}
.contextMenu {
Button {
@ -42,11 +43,20 @@ struct InstalledSourceView: View {
Image(systemName: "gear")
}
Button {
PersistenceController.shared.delete(installedSource, context: backgroundContext)
} label: {
Text("Remove")
Image(systemName: "trash")
if #available(iOS 15.0, *) {
Button(role: .destructive) {
PersistenceController.shared.delete(installedSource, context: backgroundContext)
} label: {
Text("Remove")
Image(systemName: "trash")
}
} else {
Button {
PersistenceController.shared.delete(installedSource, context: backgroundContext)
} label: {
Text("Remove")
Image(systemName: "trash")
}
}
}
}

View file

@ -33,5 +33,6 @@ struct SourceCatalogButtonView: View {
}
}
}
.padding(.vertical, 2)
}
}

View file

@ -40,6 +40,7 @@ struct SourceSettingsView: View {
.foregroundColor(.secondary)
.font(.caption)
}
.padding(.vertical, 2)
}
if selectedSource.dynamicBaseUrl {

View file

@ -24,6 +24,7 @@ struct SourceUpdateButtonView: View {
Text("by \(updatedSource.author ?? "Unknown")")
.foregroundColor(.secondary)
}
.padding(.vertical, 2)
Spacer()