Fix settings overlay layout

This commit is contained in:
Arkadiusz Fal 2022-08-21 02:55:43 +02:00
parent d5b4b6baac
commit a51de0d084

View File

@ -67,9 +67,6 @@ struct VideoPlayerView: View {
if playerControls.presentingControlsOverlay { if playerControls.presentingControlsOverlay {
HStack { HStack {
HStack { HStack {
#if !os(tvOS)
Spacer()
#endif
ControlsOverlay() ControlsOverlay()
#if os(tvOS) #if os(tvOS)
.onExitCommand { .onExitCommand {
@ -85,17 +82,15 @@ struct VideoPlayerView: View {
.modifier(ControlBackgroundModifier()) .modifier(ControlBackgroundModifier())
.clipShape(RoundedRectangle(cornerRadius: 4)) .clipShape(RoundedRectangle(cornerRadius: 4))
.transition(.opacity) .transition(.opacity)
#if !os(tvOS)
Spacer()
#endif
} }
#if !os(tvOS) #if !os(tvOS)
.frame(width: player.playerSize.width) .frame(maxWidth: fullScreenLayout ? .infinity : player.playerSize.width)
#endif #endif
#if !os(tvOS) #if !os(tvOS)
Spacer() if !fullScreenLayout && sidebarQueue {
Spacer()
}
#endif #endif
} }
#if os(tvOS) #if os(tvOS)