Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-02-20 06:42:29 +00:00
commit 44b7b73432
2 changed files with 7 additions and 12 deletions

View File

@ -66,12 +66,10 @@ export default class PluginWorkflowClient extends Plugin {
useInstructionGroupOptions = () => { useInstructionGroupOptions = () => {
const compile = useCompile(); const compile = useCompile();
return Array.from(this.instructionGroups.getEntities()) return Array.from(this.instructionGroups.getEntities()).map(([key, { label }]) => ({
.map(([key, { label }]) => ({
key, key,
label: compile(label), label: compile(label),
})) }));
.sort((a, b) => a.label.localeCompare(b.label));
}; };
isWorkflowSync(workflow) { isWorkflowSync(workflow) {

View File

@ -345,16 +345,13 @@ const useStyles = createStyles(({ css, token }) => {
align-items: center; align-items: center;
.ant-tag { .ant-tag {
max-width: 10em; max-width: 14em;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.workflow-node-id { .workflow-node-id {
color: ${token.colorTextDescription}; display: none;
&:before {
content: '#';
}
} }
`, `,
@ -363,7 +360,7 @@ const useStyles = createStyles(({ css, token }) => {
align-items: center; align-items: center;
font-weight: normal; font-weight: normal;
.workflow-node-id { .workflow-node-id {
color: ${token.colorTextDescription}; display: none;
} }
`, `,