mirror of
https://github.com/yattee/yattee.git
synced 2025-11-20 00:42:21 +00:00
Adjust tvOS video cell dimensions for better layout
Reduced video cell and grid item sizes on tvOS to improve layout spacing and visual consistency. Changed grid item size from 600 to 560 pixels, and adjusted video cell frame dimensions accordingly.
This commit is contained in:
@@ -84,7 +84,7 @@ struct VerticalCells<Header: View>: View {
|
||||
#if os(iOS)
|
||||
return verticalSizeClass == .regular ? 320 : 800
|
||||
#elseif os(tvOS)
|
||||
return 600
|
||||
return 560
|
||||
#else
|
||||
return 320
|
||||
#endif
|
||||
@@ -92,7 +92,7 @@ struct VerticalCells<Header: View>: View {
|
||||
|
||||
var adaptiveGridItemMaximumSize: Double {
|
||||
#if os(tvOS)
|
||||
return 600
|
||||
return 560
|
||||
#else
|
||||
return .infinity
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@ struct VideoCell: View {
|
||||
Button(action: playAction) {
|
||||
content
|
||||
#if os(tvOS)
|
||||
.frame(width: 580, height: channelOnThumbnail ? 470 : 500)
|
||||
.frame(width: 550, height: channelOnThumbnail ? 446 : 480)
|
||||
#endif
|
||||
}
|
||||
.opacity(contentOpacity)
|
||||
|
||||
Reference in New Issue
Block a user