mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Channels performance improvements
Add settings: Show channel avatars in channels lists Show channel avatars in videos lists Fix #508
This commit is contained in:
@@ -167,6 +167,7 @@ struct ControlsBar: View {
|
||||
channel: model.videoForDisplay?.channel,
|
||||
video: model.videoForDisplay
|
||||
)
|
||||
.id("channel-avatar-\(model.videoForDisplay?.id ?? "")")
|
||||
.frame(width: barHeight - 10, height: barHeight - 10)
|
||||
}
|
||||
.contextMenu { contextMenu }
|
||||
@@ -176,12 +177,13 @@ struct ControlsBar: View {
|
||||
channel: model.videoForDisplay?.channel,
|
||||
video: model.videoForDisplay
|
||||
)
|
||||
.id("channel-avatar-\(model.videoForDisplay?.id ?? "")")
|
||||
#if !os(tvOS)
|
||||
.highPriorityGesture(playerButtonDoubleTapGesture != .nothing ? doubleTapGesture : nil)
|
||||
.gesture(playerButtonSingleTapGesture != .nothing ? singleTapGesture : nil)
|
||||
.highPriorityGesture(playerButtonDoubleTapGesture != .nothing ? doubleTapGesture : nil)
|
||||
.gesture(playerButtonSingleTapGesture != .nothing ? singleTapGesture : nil)
|
||||
#endif
|
||||
.frame(width: barHeight - 10, height: barHeight - 10)
|
||||
.contextMenu { contextMenu }
|
||||
.frame(width: barHeight - 10, height: barHeight - 10)
|
||||
.contextMenu { contextMenu }
|
||||
}
|
||||
|
||||
if expansionState == .full {
|
||||
|
Reference in New Issue
Block a user