Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix the tooltip in tool nodes (#8215)

Yi Xiaod4dc54447abb
diff --git a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx
index e0b28a6d732..c0a7be68a65 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-modal/Form.tsx
@@ -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,
diff --git a/web/app/components/share/text-generation/result/index.tsx b/web/app/components/share/text-generation/result/index.tsx
index 96fe9f01ef2..2d5546f9b4f 100644
--- a/web/app/components/share/text-generation/result/index.tsx
+++ b/web/app/components/share/text-generation/result/index.tsx
@@ -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))!