diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index bbcee2c..a91fc3f 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -1701,7 +1701,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele } @objc func dismissTapped() { - dismiss(animated: true, completion: nil) + if let presentingViewController = self.presentingViewController { + presentingViewController.dismiss(animated: true, completion: nil) + } else { + dismiss(animated: true, completion: nil) + } } @objc func watchNextTapped() { diff --git a/Sora/Views/MediaInfoView/MediaInfoView.swift b/Sora/Views/MediaInfoView/MediaInfoView.swift index e307f73..79e68a0 100644 --- a/Sora/Views/MediaInfoView/MediaInfoView.swift +++ b/Sora/Views/MediaInfoView/MediaInfoView.swift @@ -821,6 +821,7 @@ struct MediaInfoView: View { Text("Episodes might not be available yet or there could be an issue with the source.") .font(.body) + .lineLimit(2) .foregroundColor(.secondary) .multilineTextAlignment(.center) .padding(.horizontal)