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(web): restore model selector popup spacing (#41190)

yyh8d6128957f55
diff --git a/web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx b/web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx
index 76601878272..cf0fa5800b4 100644
--- a/web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/model-selector/popup-layout.tsx
@@ -22,13 +22,14 @@ export function ModelSelectorSearchHeader({
const { t } = useTranslation()
return (
- <SearchInput
- aria-label={t(($) => $['form.searchModel'], { ns: 'datasetSettings' }) || ''}
- className="mx-2 mt-2 mb-1 shrink-0"
- placeholder={t(($) => $['form.searchModel'], { ns: 'datasetSettings' }) || ''}
- value={inputValue}
- onValueChange={onInputValueChange}
- />
+ <div className="shrink-0 bg-components-panel-bg px-2 pt-2 pb-1">
+ <SearchInput
+ aria-label={t(($) => $['form.searchModel'], { ns: 'datasetSettings' }) || ''}
+ placeholder={t(($) => $['form.searchModel'], { ns: 'datasetSettings' }) || ''}
+ value={inputValue}
+ onValueChange={onInputValueChange}
+ />
+ </div>
)
}
diff --git a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx
index 242e74fbfa4..5189e337315 100644
--- a/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx
+++ b/web/app/components/header/account-setting/model-provider-page/provider-added-card/quota-panel.tsx
@@ -52,7 +52,7 @@ const QuotaInfotip: FC<QuotaInfotipProps> = ({ tipText }) => {
closeDelay={200}
aria-label={tipText}
onClick={handleClick}
- className="ml-0.5 inline-flex size-3 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent p-0 focus-visible:ring-1 focus-visible:ring-components-input-border-hover focus-visible:outline-hidden"
+ className="ml-0.5 inline-flex size-3 shrink-0 cursor-pointer items-center justify-center rounded-sm border-0 bg-transparent p-0 outline-hidden focus-visible:ring-2 focus-visible:ring-state-accent-solid"
>
<span
aria-hidden