diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 7f99fce0..7e1e7e82 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -102,7 +102,7 @@ struct PlayerControls: View { .opacity(model.presentingControlsOverlay ? 1 : 0) VideoDetailsOverlay() - .frame(maxWidth: detailsWidth, maxHeight: 450) + .frame(maxWidth: detailsWidth, maxHeight: detailsHeight) .modifier(ControlBackgroundModifier()) .clipShape(RoundedRectangle(cornerRadius: 4)) .opacity(model.presentingDetailsOverlay ? 1 : 0) @@ -140,6 +140,11 @@ struct PlayerControls: View { return [player.playerSize.width, 600].min()! } + var detailsHeight: Double { + guard let player = player, player.playerSize.height.isFinite else { return 200 } + return [player.playerSize.height, 500].min()! + } + @ViewBuilder var controlsBackground: some View { if player.musicMode, let item = self.player.currentItem,