diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx index 7e71b1402f..07e04b97e7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/index.tsx @@ -63,12 +63,10 @@ export default class PluginWorkflowClient extends Plugin { useInstructionGroupOptions = () => { const compile = useCompile(); - return Array.from(this.instructionGroups.getEntities()) - .map(([key, { label }]) => ({ - key, - label: compile(label), - })) - .sort((a, b) => a.label.localeCompare(b.label)); + return Array.from(this.instructionGroups.getEntities()).map(([key, { label }]) => ({ + key, + label: compile(label), + })); }; isWorkflowSync(workflow) { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx index c8aadab908..510e640ee7 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/style.tsx @@ -345,16 +345,13 @@ const useStyles = createStyles(({ css, token }) => { align-items: center; .ant-tag { - max-width: 10em; + max-width: 14em; overflow: hidden; text-overflow: ellipsis; } .workflow-node-id { - color: ${token.colorTextDescription}; - &:before { - content: '#'; - } + display: none; } `, @@ -363,7 +360,7 @@ const useStyles = createStyles(({ css, token }) => { align-items: center; font-weight: normal; .workflow-node-id { - color: ${token.colorTextDescription}; + display: none; } `,