From 53173141a81cf4b28fb6693d8eed5f9b657ef911 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Mon, 19 May 2025 11:01:32 -0300 Subject: [PATCH] fix: made disabled output button not appear as clickable (#8071) Fix button appearing as clickable when output can't be shown --- .../GenericNode/components/NodeOutputfield/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx index 6a8a8e662..785eac633 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputfield/index.tsx @@ -138,10 +138,10 @@ const InspectButton = memo( className={cn( "icon-size", isToolMode - ? displayOutputPreview && !unknownOutput + ? displayOutputPreview && !unknownOutput && !disabled ? "text-background hover:text-secondary-hover" : "cursor-not-allowed text-placeholder-foreground opacity-80" - : displayOutputPreview && !unknownOutput + : displayOutputPreview && !unknownOutput && !disabled ? "text-foreground hover:text-primary-hover" : "cursor-not-allowed text-placeholder-foreground opacity-60", errorOutput ? "text-destructive" : "",