Fix channel links

This commit is contained in:
Arkadiusz Fal
2022-12-14 18:10:50 +01:00
parent a156ef6a3f
commit 67e32f4da1
3 changed files with 15 additions and 4 deletions

View File

@@ -70,8 +70,18 @@ struct RecentNavigationLink<DestinationContent: View>: View {
destination
} label: {
HStack {
Label(recent.title, systemImage: labelSystemImage)
.lineLimit(1)
if recent.type == .channel,
let channel = recent.channel,
channel.thumbnailURLOrCached != nil
{
ChannelAvatarView(channel: channel, subscribedBadge: false)
.frame(width: 20, height: 20)
Text(channel.name)
} else {
Label(recent.title, systemImage: labelSystemImage)
.lineLimit(1)
}
Spacer()