mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Remove channel card background on tvOS and fix grid focus clipping
This commit is contained in:
@@ -72,8 +72,10 @@ struct ChannelCardGridView: View {
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.padding()
|
||||
.background(.quaternary.opacity(0.3))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
||||
#if !os(tvOS)
|
||||
.background(.quaternary.opacity(0.3))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
||||
#endif
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,9 @@ struct ViewOptionsSheet: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.scrollClipDisabled()
|
||||
.padding(.horizontal, 40)
|
||||
.padding(.vertical, 24)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -386,6 +386,7 @@ struct ManageChannelsView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.scrollClipDisabled()
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user