fix: 解决文件编辑器行号问题 (#6423)

Refs #5918

升级了编辑器版本,调整了编辑器的主题,需要整体测试一下编辑器的样式!
This commit is contained in:
2024-09-09 18:08:04 +08:00 committed by GitHub
parent dff0375848
commit 2d9c977805
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -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",

View File

@ -67,7 +67,7 @@
</div>
<div v-loading="loading">
<div class="flex">
<div class="sm:w-48 w-1/3 monaco-editor-background tree-container" v-if="isShow">
<div class="monaco-editor sm:w-48 w-1/3 monaco-editor-background border-0 tree-container" v-if="isShow">
<div class="flex items-center justify-between pl-1 sm:pr-4 pr-1 pt-1">
<el-tooltip :content="$t('file.top')" placement="top">
<el-text size="small" @click="getUpData()" class="cursor-pointer">
@ -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);
}