Minor fixes

This commit is contained in:
Arkadiusz Fal
2022-09-01 00:41:31 +02:00
parent f5016cc961
commit b8380b2528
13 changed files with 49 additions and 41 deletions

View File

@@ -79,13 +79,13 @@ struct VideoBanner: View {
} placeholder: {
Rectangle().foregroundColor(Color("PlaceholderColor"))
}
#if os(tvOS)
.frame(width: thumbnailWidth, height: 140)
.mask(RoundedRectangle(cornerRadius: 12))
#else
.frame(width: thumbnailWidth, height: 60)
.mask(RoundedRectangle(cornerRadius: 6))
#endif
#if os(tvOS)
.frame(width: thumbnailWidth, height: 140)
.mask(RoundedRectangle(cornerRadius: 12))
#else
.frame(width: thumbnailWidth, height: 60)
.mask(RoundedRectangle(cornerRadius: 6))
#endif
} else {
WebImage(url: url)
.resizable()
@@ -93,13 +93,13 @@ struct VideoBanner: View {
ProgressView()
}
.indicator(.activity)
#if os(tvOS)
#if os(tvOS)
.frame(width: thumbnailWidth, height: 140)
.mask(RoundedRectangle(cornerRadius: 12))
#else
#else
.frame(width: thumbnailWidth, height: 60)
.mask(RoundedRectangle(cornerRadius: 6))
#endif
#endif
}
}

View File

@@ -428,9 +428,9 @@ struct VideoCell: View {
} placeholder: {
Rectangle().foregroundColor(Color("PlaceholderColor"))
}
#if os(tvOS)
.frame(minHeight: 320)
#endif
#if os(tvOS)
.frame(minHeight: 320)
#endif
} else {
WebImage(url: url)
.resizable()
@@ -443,9 +443,9 @@ struct VideoCell: View {
thumbnails.insertUnloadable(url)
}
#if os(tvOS)
#if os(tvOS)
.frame(minHeight: 320)
#endif
#endif
}
}
.mask(RoundedRectangle(cornerRadius: thumbnailRoundingCornerRadius))