Tune tvOS media browser row layout

This commit is contained in:
Arkadiusz Fal
2026-04-17 05:49:14 +02:00
parent f2a5069cd2
commit 53144293c8
2 changed files with 10 additions and 3 deletions

View File

@@ -60,8 +60,7 @@ struct SourceListRow<Content: View>: View {
.frame(height: 1)
.padding(.leading, dividerLeadingPadding)
#else
Divider()
.padding(.leading, dividerLeadingPadding)
EmptyView()
#endif
}
}

View File

@@ -38,8 +38,16 @@ struct MediaFileRow: View {
}
}
private static let iconTextSpacing: CGFloat = {
#if os(tvOS)
return 24
#else
return 12
#endif
}()
var body: some View {
HStack(spacing: 12) {
HStack(spacing: Self.iconTextSpacing) {
iconAreaModifier(AnyView(iconView))
textAreaModifier(AnyView(textView))
Spacer(minLength: 0)