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: use break-word wrapping for workflow errors (#45106)

Joelf36f75a4eaf0
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index f92c53b96de..ffdccb09b16 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -1078,9 +1078,6 @@
}
},
"web/app/components/base/chat/chat/answer/workflow-process.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 7
- },
"eslint-react/set-state-in-effect": {
"count": 1
}
diff --git a/web/app/components/base/chat/chat/answer/workflow-process.tsx b/web/app/components/base/chat/chat/answer/workflow-process.tsx
index 2be063f0fb2..447819c3bf5 100644
--- a/web/app/components/base/chat/chat/answer/workflow-process.tsx
+++ b/web/app/components/base/chat/chat/answer/workflow-process.tsx
@@ -65,7 +65,7 @@ const WorkflowProcessItem = ({
className={cn(
'-mx-1 rounded-xl px-2.5',
collapse
- ? 'border-l-[0.25px] border-components-panel-border py-1.75'
+ ? 'border-s-[0.25px] border-components-panel-border py-1.75'
: 'border-[0.5px] border-components-panel-border-subtle px-1 pt-1.75 pb-1',
running && !collapse && 'bg-background-section-burn',
succeeded && !collapse && 'bg-state-success-hover',
@@ -80,7 +80,7 @@ const WorkflowProcessItem = ({
<button
type="button"
className={cn(
- 'flex w-full cursor-pointer items-center border-0 bg-transparent p-0 text-left',
+ 'flex w-full cursor-pointer items-center border-0 bg-transparent p-0 text-start',
!collapse && 'px-1.5',
)}
aria-expanded={!collapse}
@@ -90,28 +90,28 @@ const WorkflowProcessItem = ({
<span
role="img"
aria-label={statusLabel}
- className="mr-1 i-ri-loader-2-line size-3.5 shrink-0 animate-spin text-text-tertiary"
+ className="me-1 i-ri-loader-2-line size-3.5 shrink-0 animate-spin text-text-tertiary"
/>
)}
{succeeded && (
<span
role="img"
aria-label={statusLabel}
- className="mr-1 i-custom-vender-solid-general-check-circle size-3.5 shrink-0 text-text-success"
+ className="me-1 i-custom-vender-solid-general-check-circle size-3.5 shrink-0 text-text-success"
/>
)}
{failed && (
<span
role="img"
aria-label={statusLabel}
- className="mr-1 i-ri-error-warning-fill size-3.5 shrink-0 text-text-destructive"
+ className="me-1 i-ri-error-warning-fill size-3.5 shrink-0 text-text-destructive"
/>
)}
{paused && (
<span
role="img"
aria-label={statusLabel}
- className="mr-1 i-ri-pause-circle-fill size-3.5 shrink-0 text-text-warning-secondary"
+ className="me-1 i-ri-pause-circle-fill size-3.5 shrink-0 text-text-warning-secondary"
/>
)}
<div
@@ -125,7 +125,7 @@ const WorkflowProcessItem = ({
<span
aria-hidden
className={cn(
- 'ml-1 i-ri-arrow-right-s-line size-4 shrink-0 text-text-tertiary',
+ 'ms-1 i-ri-arrow-right-s-line size-4 shrink-0 text-text-tertiary',
!collapse && 'rotate-90',
)}
/>
@@ -135,7 +135,7 @@ const WorkflowProcessItem = ({
{failed && data.error && (
<div
role="alert"
- className="mb-1.5 rounded-lg border-[0.5px] border-state-destructive-border bg-state-destructive-hover px-2 py-1.5 system-xs-regular text-text-destructive"
+ className="mb-1.5 rounded-lg border-[0.5px] border-state-destructive-border bg-state-destructive-hover px-2 py-1.5 system-xs-regular wrap-break-word text-text-destructive"
>
{localizedError}
</div>