1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 14:20:32 +05:30

Hide channel name in channel view (fix #229)

This commit is contained in:
Arkadiusz Fal 2022-08-08 19:26:51 +02:00
parent 8accf8f63d
commit a11bfbeee0

View File

@ -160,7 +160,7 @@ struct VideoCell: View {
videoDetail(video.title, lineLimit: 5) videoDetail(video.title, lineLimit: 5)
.frame(minWidth: 0, maxWidth: .infinity, alignment: .leading) .frame(minWidth: 0, maxWidth: .infinity, alignment: .leading)
if !channelOnThumbnail { if !channelOnThumbnail, !inChannelView {
channelButton(badge: false) channelButton(badge: false)
} }
@ -242,7 +242,7 @@ struct VideoCell: View {
#else #else
.frame(minHeight: 40, alignment: .top) .frame(minHeight: 40, alignment: .top)
#endif #endif
if !channelOnThumbnail { if !channelOnThumbnail, !inChannelView {
channelButton(badge: false) channelButton(badge: false)
.padding(.top, 4) .padding(.top, 4)
.padding(.bottom, 6) .padding(.bottom, 6)
@ -359,7 +359,7 @@ struct VideoCell: View {
Spacer() Spacer()
if channelOnThumbnail { if channelOnThumbnail, !inChannelView {
channelButton() channelButton()
} }
} }