fix: update KvmIdRoute to conditionally render WebRTCVideo based on failsafeReason

This commit is contained in:
Adam Shiervani 2025-11-10 16:17:37 +01:00
parent 9115362956
commit 426cd6fe56
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ export default function KvmIdRoute() {
/> />
<div className="relative flex h-full w-full overflow-hidden"> <div className="relative flex h-full w-full overflow-hidden">
{!isFailsafeMode && <WebRTCVideo />} {!isFailsafeMode && failsafeReason === "video" && <WebRTCVideo />}
<div <div
style={{ animationDuration: "500ms" }} style={{ animationDuration: "500ms" }}
className="animate-slideUpFade pointer-events-none absolute inset-0 flex items-center justify-center p-4" className="animate-slideUpFade pointer-events-none absolute inset-0 flex items-center justify-center p-4"