mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +00:00
Tune tvOS media browser row layout
This commit is contained in:
@@ -60,8 +60,7 @@ struct SourceListRow<Content: View>: View {
|
|||||||
.frame(height: 1)
|
.frame(height: 1)
|
||||||
.padding(.leading, dividerLeadingPadding)
|
.padding(.leading, dividerLeadingPadding)
|
||||||
#else
|
#else
|
||||||
Divider()
|
EmptyView()
|
||||||
.padding(.leading, dividerLeadingPadding)
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
var body: some View {
|
||||||
HStack(spacing: 12) {
|
HStack(spacing: Self.iconTextSpacing) {
|
||||||
iconAreaModifier(AnyView(iconView))
|
iconAreaModifier(AnyView(iconView))
|
||||||
textAreaModifier(AnyView(textView))
|
textAreaModifier(AnyView(textView))
|
||||||
Spacer(minLength: 0)
|
Spacer(minLength: 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user