diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal.tsx index d9dd907816..cd4cf71bac 100644 --- a/web/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal.tsx +++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/schema-modal.tsx @@ -44,6 +44,7 @@ const SchemaModal: FC = ({ { className='relative flex grow flex-col overflow-y-auto bg-background-body' >
= ({ value={varInput?.value as any} isExpand isInNode - height={100} language={CodeLanguage.json} onChange={handleValueChange} className='w-full' diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx index 28b9035edd..d96f856bbb 100644 --- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx +++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/index.tsx @@ -2,8 +2,10 @@ import type { FC } from 'react' import type { SchemaRoot } from '../../../types' import SchemaNode from './schema-node' import { useSchemaNodeOperations } from './hooks' +import cn from '@/utils/classnames' export type VisualEditorProps = { + className?: string schema: SchemaRoot rootName?: string readOnly?: boolean @@ -11,11 +13,11 @@ export type VisualEditorProps = { } const VisualEditor: FC = (props) => { - const { schema, readOnly } = props + const { className, schema, readOnly } = props useSchemaNodeOperations(props) return ( -
+
{ }, 100) return ( -
e.stopPropagation()}> +
e.stopPropagation()}> { } >
{content}
+ > +
{content}
+ +
-
) }