docs: fix spacing between workflow steps and tooltip (#12994)
This commit is contained in:
1 parent
6474e4b328
commit
9c94580d17
2 files changed
+14
-8
No files matched your search
@@ -11,7 +11,7 @@ export const WorkflowDiagramLegend = ({
|
|||||||
hideLegend = false,
|
hideLegend = false,
|
||||||
}: WorkflowDiagramLegendProps) => {
|
}: WorkflowDiagramLegendProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-docs_0.5 mt-1">
|
<div className="flex gap-docs_0.5">
|
||||||
{!hideLegend && (
|
{!hideLegend && (
|
||||||
<>
|
<>
|
||||||
<div className="flex items-center gap-docs_0.5">
|
<div className="flex items-center gap-docs_0.5">
|
||||||
|
|||||||
@@ -13,14 +13,20 @@ export const WorkflowDiagramList = ({
|
|||||||
const clusters = createNodeClusters(workflow.steps)
|
const clusters = createNodeClusters(workflow.steps)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-docs_0.5 my-docs_1 workflow-list-diagram w-fit">
|
<div className="flex flex-col gap-docs_1 my-docs_1 w-fit">
|
||||||
{Object.entries(clusters).map(([depth, cluster]) => {
|
<div className="workflow-list-diagram flex flex-col gap-docs_0.5 w-fit">
|
||||||
const next = getNextCluster(clusters, Number(depth))
|
{Object.entries(clusters).map(([depth, cluster]) => {
|
||||||
|
const next = getNextCluster(clusters, Number(depth))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<WorkflowDiagramListDepth cluster={cluster} next={next} key={depth} />
|
<WorkflowDiagramListDepth
|
||||||
)
|
cluster={cluster}
|
||||||
})}
|
next={next}
|
||||||
|
key={depth}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
<WorkflowDiagramLegend hideLegend={hideLegend} />
|
<WorkflowDiagramLegend hideLegend={hideLegend} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user