diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx index 25eff9a1a7..c3d93feeeb 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/AddButton.tsx @@ -56,7 +56,7 @@ export function AddButton(props: AddButtonProps) { })), }; }); - }, [instructionList]); + }, [branchIndex, instructionList, upstream, workflow]); const resource = useMemo(() => { if (!workflow) { return null; diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx index 4103593419..ad15dfbaa3 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx @@ -185,14 +185,13 @@ const useStyles = createStyles(({ css, token }) => { .end-sign { position: relative; - flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 0; - height: 6em; - padding: 2em 0; + height: 4em; + padding: 1em 0; border-left: 1px dashed ${token.colorBgLayout}; .anticon {