mirror of
https://github.com/yattee/yattee.git
synced 2025-01-08 22:07:10 +00:00
Fix settings overlay layout
This commit is contained in:
parent
d5b4b6baac
commit
a51de0d084
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user