From 2d9c977805169e734eb70822ca82648f5a0294bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:08:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E8=A1=8C=E5=8F=B7=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#6423)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #5918 升级了编辑器版本,调整了编辑器的主题,需要整体测试一下编辑器的样式! --- frontend/package.json | 2 +- .../src/views/host/file-management/code-editor/index.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index b83920afa..3e2060106 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -41,7 +41,7 @@ "highlight.js": "^11.9.0", "js-base64": "^3.7.7", "md-editor-v3": "^2.11.3", - "monaco-editor": "^0.34.1", + "monaco-editor": "^0.51.0", "nprogress": "^0.2.0", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^1.6.1", diff --git a/frontend/src/views/host/file-management/code-editor/index.vue b/frontend/src/views/host/file-management/code-editor/index.vue index ca0676ec9..b7911933d 100644 --- a/frontend/src/views/host/file-management/code-editor/index.vue +++ b/frontend/src/views/host/file-management/code-editor/index.vue @@ -67,7 +67,7 @@
-
+
@@ -711,6 +711,11 @@ defineExpose({ acceptParams }); color: var(--el-color-primary) !important; } +.monaco-editor-background { + outline-style: none; + background-color: var(--vscode-editor-background) !important; +} + .tree-widget { background-color: var(--el-button--primary); }