fix: made disabled output button not appear as clickable (#8071)

Fix button appearing as clickable when output can't be shown
This commit is contained in:
Lucas Oliveira 2025-05-19 11:01:32 -03:00 • committed by GitHub
commit 53173141a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,10 +138,10 @@ const InspectButton = memo(
className={cn( className={cn(
"icon-size", "icon-size",
isToolMode isToolMode
? displayOutputPreview && !unknownOutput ? displayOutputPreview && !unknownOutput && !disabled
? "text-background hover:text-secondary-hover" ? "text-background hover:text-secondary-hover"
: "cursor-not-allowed text-placeholder-foreground opacity-80" : "cursor-not-allowed text-placeholder-foreground opacity-80"
: displayOutputPreview && !unknownOutput : displayOutputPreview && !unknownOutput && !disabled
? "text-foreground hover:text-primary-hover" ? "text-foreground hover:text-primary-hover"
: "cursor-not-allowed text-placeholder-foreground opacity-60", : "cursor-not-allowed text-placeholder-foreground opacity-60",
errorOutput ? "text-destructive" : "", errorOutput ? "text-destructive" : "",