fix the tooltip in tool nodes (#8215)

This commit is contained in:
Yi Xiao 2024-09-10 17:53:44 +08:00 committed by GitHub
parent d109881410
commit d4dc54447a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -70,15 +70,15 @@ const Form: FC<FormProps> = ({
const renderField = (formSchema: CredentialFormSchema) => {
const tooltip = formSchema.tooltip
const tooltipContent = (tooltip && (
<span className='ml-1'>
<Tooltip
popupContent={
<div className='w-[200px]'>
{tooltip[language] || tooltip.en_US}
</div>}
triggerClassName='w-4 h-4'
/>
</span>))
<Tooltip
popupContent={
<div className='w-[200px]'>
{tooltip[language] || tooltip.en_US}
</div>}
triggerClassName='ml-1 w-4 h-4'
asChild={false}
/>
))
if (formSchema.type === FormTypeEnum.textInput || formSchema.type === FormTypeEnum.secretInput || formSchema.type === FormTypeEnum.textNumber) {
const {
variable,

View File

@ -219,7 +219,7 @@ const Result: FC<IResultProps> = ({
}))
},
onIterationNext: () => {
setWorkflowProccessData(produce(getWorkflowProccessData()!, (draft) => {
setWorkflowProcessData(produce(getWorkflowProcessData()!, (draft) => {
draft.expand = true
const iterations = draft.tracing.find(item => item.node_id === data.node_id
&& (item.execution_metadata?.parallel_id === data.execution_metadata?.parallel_id || item.parallel_id === data.execution_metadata?.parallel_id))!