diff --git a/web/app/components/base/prompt-editor/index.tsx b/web/app/components/base/prompt-editor/index.tsx index 560a9e8c10..717039e7ce 100644 --- a/web/app/components/base/prompt-editor/index.tsx +++ b/web/app/components/base/prompt-editor/index.tsx @@ -34,7 +34,6 @@ import { UPDATE_DATASETS_EVENT_EMITTER, UPDATE_HISTORY_EVENT_EMITTER, } from './constants' -import styles from './line-numbers.module.css' import ComponentPickerBlock from './plugins/component-picker-block' import { ContextBlock, @@ -89,7 +88,6 @@ export type PromptEditorProps = { className?: string placeholder?: string | React.ReactNode placeholderClassName?: string - showLineNumbers?: boolean style?: React.CSSProperties value?: string editable?: boolean @@ -115,7 +113,6 @@ const PromptEditor: FC = ({ className, placeholder, placeholderClassName, - showLineNumbers, style, value, editable = true, @@ -181,14 +178,13 @@ const PromptEditor: FC = ({ return ( -
+
= ({ placeholder={( )} diff --git a/web/app/components/workflow/skill/editor/skill-editor/index.tsx b/web/app/components/workflow/skill/editor/skill-editor/index.tsx index 4bbe6fa002..00d6db583c 100644 --- a/web/app/components/workflow/skill/editor/skill-editor/index.tsx +++ b/web/app/components/workflow/skill/editor/skill-editor/index.tsx @@ -14,13 +14,13 @@ import { TextNode, } from 'lexical' import * as React from 'react' -import styles from '@/app/components/base/prompt-editor/line-numbers.module.css' import { CustomTextNode } from '@/app/components/base/prompt-editor/plugins/custom-text/node' import OnBlurBlock from '@/app/components/base/prompt-editor/plugins/on-blur-or-focus-block' import Placeholder from '@/app/components/base/prompt-editor/plugins/placeholder' import UpdateBlock from '@/app/components/base/prompt-editor/plugins/update-block' import { textToEditorState } from '@/app/components/base/prompt-editor/utils' import { cn } from '@/utils/classnames' +import styles from './line-numbers.module.css' import { ToolBlock, ToolBlockNode, diff --git a/web/app/components/base/prompt-editor/line-numbers.module.css b/web/app/components/workflow/skill/editor/skill-editor/line-numbers.module.css similarity index 100% rename from web/app/components/base/prompt-editor/line-numbers.module.css rename to web/app/components/workflow/skill/editor/skill-editor/line-numbers.module.css