From 47bd5b37e361be56686f886c98cb24b1a14970f1 Mon Sep 17 00:00:00 2001 From: Soumyadas15 Date: Tue, 27 May 2025 16:45:53 +0530 Subject: [PATCH] chore(dev): browser state fix --- .../thread/tool-views/BrowserToolView.tsx | 75 +++++++++---------- 1 file changed, 36 insertions(+), 39 deletions(-) diff --git a/frontend/src/components/thread/tool-views/BrowserToolView.tsx b/frontend/src/components/thread/tool-views/BrowserToolView.tsx index d1126557..c5f908d2 100644 --- a/frontend/src/components/thread/tool-views/BrowserToolView.tsx +++ b/frontend/src/components/thread/tool-views/BrowserToolView.tsx @@ -189,15 +189,15 @@ export function BrowserToolView({ {imageLoading && ( )} - Browser Screenshot + {!imageLoading && !imageError && ( + Browser Screenshot + )} {imageError && !imageLoading && (
@@ -214,15 +214,15 @@ export function BrowserToolView({ {imageLoading && ( )} - Browser Screenshot + {!imageLoading && !imageError && ( + Browser Screenshot + )} {imageError && !imageLoading && (
@@ -332,26 +332,24 @@ export function BrowserToolView({ {imageLoading && ( )} - {screenshotUrl ? ( - Browser Screenshot - ) : ( - Browser Screenshot + {!imageLoading && !imageError && ( + screenshotUrl ? ( + Browser Screenshot + ) : ( + Browser Screenshot + ) )} {imageError && !imageLoading && (
@@ -378,7 +376,6 @@ export function BrowserToolView({
- {/* Footer */}
{!isRunning && (