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): space collapse header title and infotip (#45468)

yyheea40c683bbc
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index ab65a7219a0..6421c456d7f 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -4300,11 +4300,6 @@
"count": 1
}
},
- "web/app/components/workflow/nodes/_base/components/collapse/index.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 2
- }
- },
"web/app/components/workflow/nodes/_base/components/editor/base.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 6
@@ -4342,11 +4337,6 @@
"count": 2
}
},
- "web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 1
- }
- },
"web/app/components/workflow/nodes/_base/components/error-handle/error-handle-type-selector.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
diff --git a/web/app/components/workflow/nodes/_base/components/collapse/index.tsx b/web/app/components/workflow/nodes/_base/components/collapse/index.tsx
index 6416508fb78..18dcb0c5cf7 100644
--- a/web/app/components/workflow/nodes/_base/components/collapse/index.tsx
+++ b/web/app/components/workflow/nodes/_base/components/collapse/index.tsx
@@ -27,7 +27,7 @@ type CollapseHeaderProps = {
}
export function CollapseHeader({ children }: CollapseHeaderProps) {
- return <div className="group/collapse flex items-center">{children}</div>
+ return <div className="group/collapse flex items-center gap-0.5">{children}</div>
}
type CollapseActionsProps = {
@@ -35,7 +35,7 @@ type CollapseActionsProps = {
}
export function CollapseActions({ children }: CollapseActionsProps) {
- return <div className="ml-auto shrink-0">{children}</div>
+ return <div className="ms-auto shrink-0">{children}</div>
}
type CollapseTriggerProps = Omit<CollapsibleTriggerProps, 'className'> & {
@@ -46,7 +46,7 @@ export function CollapseTrigger({ className, ...props }: CollapseTriggerProps) {
return (
<CollapsibleTrigger
className={cn(
- 'group/collapse ml-4 flex h-6 min-h-0 min-w-0 shrink-0 touch-manipulation items-center justify-start gap-0 rounded-md text-start system-sm-medium text-text-secondary select-none hover:not-data-disabled:text-text-secondary data-disabled:cursor-not-allowed data-disabled:text-text-disabled data-panel-open:text-text-secondary',
+ 'group/collapse ms-4 flex h-6 min-h-0 min-w-0 shrink-0 touch-manipulation items-center justify-start gap-0 rounded-md text-start system-sm-medium text-text-secondary select-none hover:not-data-disabled:text-text-secondary data-disabled:cursor-not-allowed data-disabled:text-text-disabled data-panel-open:text-text-secondary',
className,
)}
{...props}
diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
index a243cd7c3f7..81567b2f547 100644
--- a/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
+++ b/web/app/components/workflow/nodes/_base/components/error-handle/error-handle-on-panel.tsx
@@ -56,7 +56,7 @@ const ErrorHandle = ({ id, data }: ErrorHandleProps) => {
</InfotipContent>
</Infotip>
<CollapseActions>
- <div className="pr-4">
+ <div className="pe-4">
<ErrorHandleTypeSelector
value={error_strategy || ErrorHandleTypeEnum.none}
onSelected={handleTypeChange}