diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 2f9e60ac1..be419f299 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -226,6 +226,8 @@ export default { padding: 0 14px; max-height: 100%; overflow: initial; + user-select: text; + -webkit-user-select: text; &::v-deep { .app-sidebar-header { diff --git a/src/components/card/Description.vue b/src/components/card/Description.vue index 0298949d5..c934060ca 100644 --- a/src/components/card/Description.vue +++ b/src/components/card/Description.vue @@ -324,6 +324,12 @@ h5 { border-left: 1px solid var(--color-main-text); } +.CodeMirror-selected, +.CodeMirror-line::selection, .CodeMirror-line>span::selection, .CodeMirror-line>span>span::selection { + background: var(--color-primary-element) !important; + color: var(--color-primary-text) !important; +} + .editor-preview, .editor-statusbar { display: none;