From de4d657d42c3a119b90d73b55d49020598bfb8f8 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Tue, 16 Jun 2026 11:58:57 +0200 Subject: [PATCH] fix(player): make the unavailable overlay fully opaque The fallback used a translucent background and left the iframe mounted, so YouTube's own 'Video unavailable' screen bled through and overlapped our message. Use a solid background and hide the iframe while the error shows. --- frontend/src/components/PlayerModal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/PlayerModal.tsx b/frontend/src/components/PlayerModal.tsx index c0df596..1d38fed 100644 --- a/frontend/src/components/PlayerModal.tsx +++ b/frontend/src/components/PlayerModal.tsx @@ -437,9 +437,11 @@ export default function PlayerModal({ onClick={(e) => e.stopPropagation()} >
-
+ {/* Hide the iframe entirely on error so YouTube's own error screen can't bleed + through our overlay. */} +
{playerError != null && ( -
+

{t("player.unavailableTitle")}