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): keep dialogs within the viewport on narrow screens (#45668)

yyh5253ee2f0820
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index 3f15bd0ec75..e2e57f92e38 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -739,11 +739,6 @@
"count": 4
}
},
- "web/app/components/app/switch-app-modal/index.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 2
- }
- },
"web/app/components/app/text-generate/item/action-groups.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 3
diff --git a/web/app/components/app/switch-app-modal/index.tsx b/web/app/components/app/switch-app-modal/index.tsx
index 447bb95406c..f6ccb36537d 100644
--- a/web/app/components/app/switch-app-modal/index.tsx
+++ b/web/app/components/app/switch-app-modal/index.tsx
@@ -118,7 +118,7 @@ const SwitchAppModal = ({ open, sourceApp, onOpenChange }: SwitchAppModalProps)
else onOpenChange?.(nextOpen, details)
}}
>
- <DialogContent initialFocus={nameInputRef} className="w-150 max-w-150">
+ <DialogContent initialFocus={nameInputRef} className="w-150">
<SwitchAppSession
nameInputRef={nameInputRef}
sourceApp={sourceApp}
@@ -272,7 +272,7 @@ function SwitchAppSession({
if (checked) setShowConfirmDelete(true)
}}
/>
- <span className="ml-2 text-left text-sm/5 text-text-secondary">
+ <span className="ms-2 text-start text-sm/5 text-text-secondary">
{t(($) => $.removeOriginal, { ns: 'app' })}
</span>
</label>
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 1c92936ca60..a7f5a0684f3 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
@@ -156,7 +156,7 @@ const SystemModel: FC<SystemModelSelectorProps> = ({
)}
{t(($) => $['modelProvider.systemModelSettings'], { ns: 'modelProvider' })}
</DialogTrigger>
- <DialogContent className="max-h-[calc(100dvh-2rem)] max-w-120">
+ <DialogContent>
<DialogHeader>
<DialogTitle>
{t(($) => $['modelProvider.systemModelSettingsTitle'], { ns: 'modelProvider' })}
diff --git a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx b/web/app/components/tools/workflow-tool/confirm-modal/index.tsx
index d42a0773380..e1fea490dc0 100644
--- a/web/app/components/tools/workflow-tool/confirm-modal/index.tsx
+++ b/web/app/components/tools/workflow-tool/confirm-modal/index.tsx
@@ -29,7 +29,7 @@ const ConfirmModal = ({ show, onConfirm, onClose }: ConfirmModalProps) => {
}}
disablePointerDismissal
>
- <DialogContent backdropProps={{ forceRender: true }} className="w-150 max-w-150">
+ <DialogContent backdropProps={{ forceRender: true }} className="w-150">
<DialogHeader>
<div className="mb-2 h-12 w-12 rounded-xl border-[0.5px] border-divider-regular bg-background-section p-3 shadow-xl">
<span