mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 00:26:33 +00:00
Fix #466
This commit is contained in:
parent
c0053cf837
commit
22bbf731e9
@ -66,7 +66,7 @@ struct ChannelVideosView: View {
|
|||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
VerticalCells(items: contentItems, edgesIgnoringSafeArea: .init()) {
|
VerticalCells(items: contentItems, edgesIgnoringSafeArea: verticalCellsEdgesIgnoringSafeArea) {
|
||||||
if let description = presentedChannel?.description, !description.isEmpty {
|
if let description = presentedChannel?.description, !description.isEmpty {
|
||||||
Button {
|
Button {
|
||||||
withAnimation(.spring()) {
|
withAnimation(.spring()) {
|
||||||
@ -200,6 +200,14 @@ struct ChannelVideosView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var verticalCellsEdgesIgnoringSafeArea: Edge.Set {
|
||||||
|
#if os(tvOS)
|
||||||
|
return .horizontal
|
||||||
|
#else
|
||||||
|
return .init()
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
@ViewBuilder var favoriteButton: some View {
|
@ViewBuilder var favoriteButton: some View {
|
||||||
if let presentedChannel {
|
if let presentedChannel {
|
||||||
FavoriteButton(item: FavoriteItem(section: .channel(accounts.app.appType.rawValue, presentedChannel.id, presentedChannel.name)))
|
FavoriteButton(item: FavoriteItem(section: .channel(accounts.app.appType.rawValue, presentedChannel.id, presentedChannel.name)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user