From d65b594473d08306adf3e35be19652b9d61e8df2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 21 Aug 2022 02:55:43 +0200 Subject: [PATCH] Fix settings overlay layout --- Shared/Player/VideoPlayerView.swift | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 954120e7..a384832c 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -67,9 +67,6 @@ struct VideoPlayerView: View { if playerControls.presentingControlsOverlay { HStack { HStack { - #if !os(tvOS) - Spacer() - #endif ControlsOverlay() #if os(tvOS) .onExitCommand { @@ -85,17 +82,15 @@ struct VideoPlayerView: View { .modifier(ControlBackgroundModifier()) .clipShape(RoundedRectangle(cornerRadius: 4)) .transition(.opacity) - - #if !os(tvOS) - Spacer() - #endif } #if !os(tvOS) - .frame(width: player.playerSize.width) + .frame(maxWidth: fullScreenLayout ? .infinity : player.playerSize.width) #endif #if !os(tvOS) - Spacer() + if !fullScreenLayout && sidebarQueue { + Spacer() + } #endif } #if os(tvOS)