From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/base/prompt-editor/index.tsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/base/prompt-editor/index.tsx b/app/components/base/prompt-editor/index.tsx index 94a65e4..b09109e 100644 --- a/app/components/base/prompt-editor/index.tsx +++ b/app/components/base/prompt-editor/index.tsx @@ -13,7 +13,7 @@ import { LexicalComposer } from '@lexical/react/LexicalComposer' import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin' import { ContentEditable } from '@lexical/react/LexicalContentEditable' -import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary' +import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary' import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin' import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin' // import TreeView from './plugins/tree-view' @@ -149,7 +149,7 @@ <LexicalComposer initialConfig={{ ...initialConfig, editable }}> <div className='relative min-h-5'> <RichTextPlugin - contentEditable={<ContentEditable className={`${className} outline-none ${compact ? 'text-[13px] leading-5' : 'text-sm leading-6'} text-text-secondary`} style={style || {}} />} + contentEditable={<ContentEditable className={`${className} outline-none ${compact ? 'leading-5 text-[13px]' : 'leading-6 text-sm'} text-text-secondary`} style={style || {}} />} placeholder={<Placeholder value={placeholder} className={cn('truncate', placeholderClassName)} compact={compact} />} ErrorBoundary={LexicalErrorBoundary} /> -- Gitblit v1.8.0