Skip to content

Commit 9c94580

Browse files
authored
docs: fix spacing between workflow steps and tooltip (#12994)
1 parent 6474e4b commit 9c94580

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

www/packages/docs-ui/src/components/WorkflowDiagram/Common/Legend/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const WorkflowDiagramLegend = ({
1111
hideLegend = false,
1212
}: WorkflowDiagramLegendProps) => {
1313
return (
14-
<div className="flex gap-docs_0.5 mt-1">
14+
<div className="flex gap-docs_0.5">
1515
{!hideLegend && (
1616
<>
1717
<div className="flex items-center gap-docs_0.5">

www/packages/docs-ui/src/components/WorkflowDiagram/List/index.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ export const WorkflowDiagramList = ({
1313
const clusters = createNodeClusters(workflow.steps)
1414

1515
return (
16-
<div className="flex flex-col gap-docs_0.5 my-docs_1 workflow-list-diagram w-fit">
17-
{Object.entries(clusters).map(([depth, cluster]) => {
18-
const next = getNextCluster(clusters, Number(depth))
16+
<div className="flex flex-col gap-docs_1 my-docs_1 w-fit">
17+
<div className="workflow-list-diagram flex flex-col gap-docs_0.5 w-fit">
18+
{Object.entries(clusters).map(([depth, cluster]) => {
19+
const next = getNextCluster(clusters, Number(depth))
1920

20-
return (
21-
<WorkflowDiagramListDepth cluster={cluster} next={next} key={depth} />
22-
)
23-
})}
21+
return (
22+
<WorkflowDiagramListDepth
23+
cluster={cluster}
24+
next={next}
25+
key={depth}
26+
/>
27+
)
28+
})}
29+
</div>
2430
<WorkflowDiagramLegend hideLegend={hideLegend} />
2531
</div>
2632
)

0 commit comments

Comments
 (0)