mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 05:53:41 +00:00
Fix details overlay layout
This commit is contained in:
parent
bcd06dfda5
commit
7b2dd75f2d
@ -35,7 +35,7 @@ struct PlayerControls: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: .topLeading) {
|
ZStack(alignment: .center) {
|
||||||
VStack {
|
VStack {
|
||||||
ZStack(alignment: .center) {
|
ZStack(alignment: .center) {
|
||||||
OpeningStream()
|
OpeningStream()
|
||||||
@ -101,10 +101,13 @@ struct PlayerControls: View {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if model.presentingDetailsOverlay {
|
if model.presentingDetailsOverlay {
|
||||||
|
Section {
|
||||||
VideoDetailsOverlay()
|
VideoDetailsOverlay()
|
||||||
.frame(maxWidth: detailsWidth, maxHeight: detailsHeight)
|
.frame(maxWidth: detailsWidth, maxHeight: detailsHeight)
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
}
|
}
|
||||||
|
.frame(maxHeight: .infinity, alignment: .top)
|
||||||
|
}
|
||||||
|
|
||||||
if !model.presentingControls,
|
if !model.presentingControls,
|
||||||
!model.presentingOverlays,
|
!model.presentingOverlays,
|
||||||
@ -126,6 +129,7 @@ struct PlayerControls: View {
|
|||||||
.modifier(ControlBackgroundModifier())
|
.modifier(ControlBackgroundModifier())
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 2))
|
.clipShape(RoundedRectangle(cornerRadius: 2))
|
||||||
}
|
}
|
||||||
|
.frame(maxHeight: .infinity, alignment: .top)
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user