SponsorBlock align categories with upstream

This commit is contained in:
Toni Förster
2024-04-23 11:00:27 +02:00
parent d1cf45c6a1
commit 321eaecd21
3 changed files with 29 additions and 16 deletions

View File

@@ -79,17 +79,18 @@ struct SponsorBlockSettings: View {
ForEach(SponsorBlockAPI.categories, id: \.self) { category in
Text(SponsorBlockAPI.categoryDescription(category) ?? "Category")
.fontWeight(.bold)
.padding(.bottom, 0.5)
#if os(tvOS)
.focusable()
#endif
Text(SponsorBlockAPI.categoryDetails(category) ?? "Details")
.padding(.bottom, 3)
.padding(.bottom, 10)
.fixedSize(horizontal: false, vertical: true)
}
}
.foregroundColor(.secondary)
.padding(.top, 3)
.padding(.top, 10)
}
func toggleCategory(_ category: String, value: Bool) {