mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Fix progress view on banner
This commit is contained in:
parent
256b1671c1
commit
ac99971d03
@ -22,7 +22,7 @@ struct VideoBanner: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: stackAlignment, spacing: 12) {
|
HStack(alignment: stackAlignment, spacing: 12) {
|
||||||
ZStack(alignment: .bottom) {
|
VStack(spacing: thumbnailStackSpacing) {
|
||||||
smallThumbnail
|
smallThumbnail
|
||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
@ -114,6 +114,14 @@ struct VideoBanner: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private var thumbnailStackSpacing: Double {
|
||||||
|
#if os(tvOS)
|
||||||
|
8
|
||||||
|
#else
|
||||||
|
2
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
@ViewBuilder private var smallThumbnail: some View {
|
@ViewBuilder private var smallThumbnail: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
Color("PlaceholderColor")
|
Color("PlaceholderColor")
|
||||||
|
Loading…
Reference in New Issue
Block a user