Fix player width on macOS

This commit is contained in:
Arkadiusz Fal 2023-05-18 17:49:01 +02:00
parent 65b3eb60d9
commit 6617ad5fc6

View File

@ -89,14 +89,6 @@ struct VideoPlayerView: View {
.onChange(of: playerSidebar) { _ in .onChange(of: playerSidebar) { _ in
updateSidebarQueue() updateSidebarQueue()
} }
#if os(macOS)
.background(
EmptyView().sheet(isPresented: $navigation.presentingChannelSheet) {
ChannelVideosView(channel: navigation.channelPresentedInSheet, showCloseButton: true, inNavigationView: false)
.frame(minWidth: 1000, minHeight: 700)
}
)
#endif
} }
var videoPlayer: some View { var videoPlayer: some View {
@ -189,7 +181,7 @@ struct VideoPlayerView: View {
.persistentSystemOverlays(!fullScreenPlayer) .persistentSystemOverlays(!fullScreenPlayer)
#endif #endif
#if os(macOS) #if os(macOS)
.frame(minWidth: 1000, minHeight: 700) .frame(minWidth: 1100, minHeight: 700)
#endif #endif
} }