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:
parent
27f9ac243b
commit
53173141a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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" : "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue