fix(web): Fix issues with workflow as tool configuration button (#23039) (#23050)

This commit is contained in:
HyaCinth
2025-07-28 15:49:19 +08:00
committed by GitHub
parent 15757110cf
commit beebcae0a1
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
destructive && 'border-components-input-border-destructive bg-components-input-bg-destructive text-components-input-text-filled hover:border-components-input-border-destructive hover:bg-components-input-bg-destructive focus:border-components-input-border-destructive focus:bg-components-input-bg-destructive',
className,
)}
value={value}
value={value ?? ''}
onChange={onChange}
disabled={disabled}
{...props}

View File

@@ -179,8 +179,8 @@ const WorkflowToolConfigureButton = ({
{(!published || !isLoading) && (
<div className={cn(
'group rounded-lg bg-background-section-burn transition-colors',
disabled ? 'cursor-not-allowed opacity-30 shadow-xs' : 'cursor-pointer',
!disabled && !published && 'hover:bg-state-accent-hover',
disabled || !isCurrentWorkspaceManager ? 'cursor-not-allowed opacity-60 shadow-xs' : 'cursor-pointer',
!disabled && !published && isCurrentWorkspaceManager && 'hover:bg-state-accent-hover',
)}>
{isCurrentWorkspaceManager
? (