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