Add workflow execution process

This commit is contained in:
yoan
2024-11-18 19:40:24 +08:00
parent bde2147dd3
commit 775b12aec1
23 changed files with 741 additions and 21 deletions

View File

@@ -96,8 +96,8 @@ const WorkflowDetail = () => {
<WorkflowBaseInfoEditDialog
trigger={
<div className="flex flex-col space-y-1 cursor-pointer items-start">
<div className="">{workflow.name ? workflow.name : "未命名工作流"}</div>
<div className="text-sm text-muted-foreground">{workflow.description ? workflow.description : "添加流程说明"}</div>
<div className="truncate max-w-[200px]">{workflow.name ? workflow.name : "未命名工作流"}</div>
<div className="text-sm text-muted-foreground truncate max-w-[200px]">{workflow.description ? workflow.description : "添加流程说明"}</div>
</div>
}
/>

View File

@@ -43,7 +43,7 @@ const Workflow = () => {
if (!name) {
name = "未命名工作流";
}
return <div className="flex items-center">{name}</div>;
return <div className="max-w-[150px] truncate">{name}</div>;
},
},
{
@@ -54,7 +54,7 @@ const Workflow = () => {
if (!description) {
description = "-";
}
return description;
return <div className="max-w-[200px] truncate">{description}</div>;
},
},
{
@@ -211,4 +211,3 @@ const Workflow = () => {
};
export default Workflow;