Remove channel card background on tvOS and fix grid focus clipping

This commit is contained in:
Arkadiusz Fal
2026-04-17 03:48:18 +02:00
parent 7a55f8ac3a
commit 5ef40e24bf
5 changed files with 20 additions and 2 deletions

View File

@@ -72,8 +72,10 @@ struct ChannelCardGridView: View {
.frame(maxWidth: .infinity)
}
.padding()
#if !os(tvOS)
.background(.quaternary.opacity(0.3))
.clipShape(RoundedRectangle(cornerRadius: 12))
#endif
.contentShape(Rectangle())
}

View File

@@ -82,6 +82,9 @@ struct ViewOptionsSheet: View {
}
}
}
.scrollClipDisabled()
.padding(.horizontal, 40)
.padding(.vertical, 24)
}
#endif

View File

@@ -43,10 +43,16 @@ struct MediaBrowserViewOptionsSheet: View {
.listRowInsets(EdgeInsets(top: 8, leading: 0, bottom: 8, trailing: 0))
}
}
#if os(tvOS)
.scrollClipDisabled()
.padding(.horizontal, 40)
.padding(.vertical, 24)
#else
.navigationTitle("mediaBrowser.viewOptions.title")
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
#endif
.toolbar {
ToolbarItem(placement: .confirmationAction) {
Button(role: .cancel) {

View File

@@ -386,6 +386,7 @@ struct ManageChannelsView: View {
}
}
}
.scrollClipDisabled()
}
// MARK: - Helpers

View File

@@ -323,10 +323,16 @@ struct SubscriptionsView: View {
}
#endif
}
#if os(tvOS)
.scrollClipDisabled()
.padding(.horizontal, 40)
.padding(.vertical, 24)
#else
.navigationTitle(String(localized: "subscriptions.viewOptions.title"))
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
#endif
}
.presentationDetents([.height(420), .large])
.presentationDragIndicator(.visible)