mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Fix channel links
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user