mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix(code-editor): optimize the loading style of the CodeEditor component in dark mode (#21116) (#21120)
This commit is contained in:
parent
72a6cde828
commit
21c2de2d7e
@ -140,6 +140,7 @@ const CodeEditor: FC<Props> = ({
|
|||||||
language={languageMap[language] || 'javascript'}
|
language={languageMap[language] || 'javascript'}
|
||||||
theme={isMounted ? theme : 'default-theme'} // sometimes not load the default theme
|
theme={isMounted ? theme : 'default-theme'} // sometimes not load the default theme
|
||||||
value={outPutValue}
|
value={outPutValue}
|
||||||
|
loading={<span className='text-text-primary'>Loading...</span>}
|
||||||
onChange={handleEditorChange}
|
onChange={handleEditorChange}
|
||||||
// https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IEditorOptions.html
|
// https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IEditorOptions.html
|
||||||
options={{
|
options={{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user