mirror of
https://github.com/yattee/yattee.git
synced 2025-08-08 19:54:07 +00:00
Minor UI fixes
This commit is contained in:
@@ -58,6 +58,11 @@ struct VideoDetails: View {
|
||||
}
|
||||
|
||||
subscriptionsSection
|
||||
.onChange(of: video) { video in
|
||||
if let video = video {
|
||||
subscribed = subscriptions.isSubscribing(video.channel.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
|
||||
@@ -108,8 +113,6 @@ struct VideoDetails: View {
|
||||
subscribed = false
|
||||
return
|
||||
}
|
||||
|
||||
subscribed = subscriptions.isSubscribing(video!.channel.id)
|
||||
}
|
||||
.onChange(of: sidebarQueue) { queue in
|
||||
if queue {
|
||||
|
@@ -26,7 +26,7 @@ struct VerticalCells: View {
|
||||
|
||||
var columns: [GridItem] {
|
||||
#if os(tvOS)
|
||||
items.count < 3 ? Array(repeating: GridItem(.fixed(540)), count: [items.count, 1].max()!) : adaptiveItem
|
||||
items.count < 3 ? Array(repeating: GridItem(.fixed(500)), count: [items.count, 1].max()!) : adaptiveItem
|
||||
#else
|
||||
adaptiveItem
|
||||
#endif
|
||||
@@ -40,7 +40,7 @@ struct VerticalCells: View {
|
||||
#if os(iOS)
|
||||
return verticalSizeClass == .regular ? 320 : 800
|
||||
#elseif os(tvOS)
|
||||
return 540
|
||||
return 500
|
||||
#else
|
||||
return 320
|
||||
#endif
|
||||
|
@@ -152,7 +152,7 @@ struct VideoCell: View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Group {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
videoDetail(video.title, lineLimit: channelOnThumbnail ? 3 : 2)
|
||||
videoDetail(video.title, lineLimit: 2)
|
||||
#if os(tvOS)
|
||||
.frame(minHeight: 60, alignment: .top)
|
||||
#elseif os(macOS)
|
||||
|
Reference in New Issue
Block a user