mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 02:45:03 +00:00
Tune tvOS media browser row layout
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user