mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Fix channel videos horizontal layout
This commit is contained in:
@@ -12,11 +12,13 @@ struct VerticalCells<Header: View>: View {
|
||||
|
||||
var items = [ContentItem]()
|
||||
var allowEmpty = false
|
||||
var edgesIgnoringSafeArea = Edge.Set.horizontal
|
||||
|
||||
let header: Header?
|
||||
init(items: [ContentItem], allowEmpty: Bool = false, @ViewBuilder header: @escaping () -> Header? = { nil }) {
|
||||
init(items: [ContentItem], allowEmpty: Bool = false, edgesIgnoringSafeArea: Edge.Set = .horizontal, @ViewBuilder header: @escaping () -> Header? = { nil }) {
|
||||
self.items = items
|
||||
self.allowEmpty = allowEmpty
|
||||
self.edgesIgnoringSafeArea = edgesIgnoringSafeArea
|
||||
self.header = header()
|
||||
}
|
||||
|
||||
@@ -40,7 +42,7 @@ struct VerticalCells<Header: View>: View {
|
||||
#endif
|
||||
}
|
||||
.animation(nil)
|
||||
.edgesIgnoringSafeArea(.horizontal)
|
||||
.edgesIgnoringSafeArea(edgesIgnoringSafeArea)
|
||||
#if os(macOS)
|
||||
.background(Color.secondaryBackground)
|
||||
.frame(minWidth: 360)
|
||||
|
Reference in New Issue
Block a user