mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Hide thumbnail in playlist if not available
This commit is contained in:
parent
b8f693e213
commit
fb22fb762c
@ -136,9 +136,11 @@ struct ChannelPlaylistView: View {
|
|||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
HStack(spacing: 12) {
|
HStack(spacing: 12) {
|
||||||
ThumbnailView(url: store.item?.thumbnailURL ?? playlist?.thumbnailURL)
|
if let url = store.item?.thumbnailURL ?? playlist?.thumbnailURL {
|
||||||
.frame(width: 60, height: 30)
|
ThumbnailView(url: url)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 2))
|
.frame(width: 60, height: 30)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 2))
|
||||||
|
}
|
||||||
|
|
||||||
Text(label)
|
Text(label)
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
|
Loading…
Reference in New Issue
Block a user