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: tooltip size sets improperly (#7836)

Yi Xiao62bfc4dba6e5
diff --git a/web/app/components/datasets/common/retrieval-param-config/index.tsx b/web/app/components/datasets/common/retrieval-param-config/index.tsx
index 54a0963f597..323e47f3b4a 100644
--- a/web/app/components/datasets/common/retrieval-param-config/index.tsx
+++ b/web/app/components/datasets/common/retrieval-param-config/index.tsx
@@ -191,7 +191,7 @@ const RetrievalParamConfig: FC<Props> = ({
<div className='truncate'>{option.label}</div>
<Tooltip
popupContent={<div className='w-[200px]'>{option.tips}</div>}
- triggerClassName='ml-0.5 w-3.5 h-4.5'
+ triggerClassName='ml-0.5 w-3.5 h-3.5'
/>
</div>
))
diff --git a/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx b/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
index 6e181425e2d..15747858981 100644
--- a/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/system-model-selector/index.tsx
@@ -148,7 +148,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.systemReasoningModel.tip')}
</div>
}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
@@ -168,8 +168,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.embeddingModel.tip')}
</div>
}
- needsDelay={false}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
@@ -189,8 +188,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.rerankModel.tip')}
</div>
}
- needsDelay={false}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
@@ -210,8 +208,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.speechToTextModel.tip')}
</div>
}
- needsDelay={false}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
@@ -231,7 +228,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
{t('common.modelProvider.ttsModel.tip')}
</div>
}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4 shrink-0'
/>
</div>
<div>
diff --git a/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx b/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx
index c7685d496d9..d580c00102f 100644
--- a/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx
+++ b/web/app/components/tools/edit-custom-collection-modal/config-credentials.tsx
@@ -114,7 +114,7 @@ const ConfigCredential: FC<Props> = ({
{t('tools.createTool.authMethod.keyTooltip')}
</div>
}
- triggerClassName='ml-0.5'
+ triggerClassName='ml-0.5 w-4 h-4'
/>
</div>
<input