ensure stream continues when switching between stream and recordings (#3865)

This commit is contained in:
Jonathan Dobson
2025-10-30 14:08:54 -04:00
committed by GitHub
parent c55148c228
commit 2191b91519
2 changed files with 18 additions and 9 deletions

View File

@@ -75,6 +75,7 @@ type Props = {
run: WorkflowRunStatusApiResponse;
};
resizeTrigger?: number;
isVisible?: boolean;
// --
onClose?: () => void;
};
@@ -86,6 +87,7 @@ function BrowserStream({
task = undefined,
workflow = undefined,
resizeTrigger,
isVisible = true,
// --
onClose,
}: Props) {
@@ -622,7 +624,7 @@ function BrowserStream({
)}
ref={setCanvasContainerRef}
>
{isReady && (
{isReady && isVisible && (
<div className="overlay z-10 flex items-center justify-center overflow-hidden">
{showControlButtons && (
<div className="control-buttons pointer-events-none relative flex h-full w-full items-center justify-center">