mirror of https://github.com/jetkvm/kvm.git
Hide video overlays if there is a connection issue
This commit is contained in:
parent
2112fe21f6
commit
2f51cba03a
|
|
@ -538,7 +538,7 @@ export default function WebRTCVideo({ hasConnectionIssues }: { hasConnectionIssu
|
||||||
},
|
},
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
{peerConnection?.connectionState == "connected" && (
|
{peerConnection?.connectionState == "connected" && !hasConnectionIssues && (
|
||||||
<div
|
<div
|
||||||
style={{ animationDuration: "500ms" }}
|
style={{ animationDuration: "500ms" }}
|
||||||
className="animate-slideUpFade pointer-events-none absolute inset-0 flex items-center justify-center"
|
className="animate-slideUpFade pointer-events-none absolute inset-0 flex items-center justify-center"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue