From ac188deda3e13c5d70f3872e18c842eacc77c670 Mon Sep 17 00:00:00 2001 From: Francesco <100066266+cranci1@users.noreply.github.com> Date: Sat, 31 May 2025 18:14:42 +0200 Subject: [PATCH] yeah idk --- Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift | 6 +++++- Sora/Views/MediaInfoView/MediaInfoView.swift | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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)