From f3ad2a37093b7a902407fbf8de0367cdddc5ee57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 28 Apr 2022 13:40:55 +0200 Subject: [PATCH] Fix text selection in dark mode and modal view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/CardSidebar.vue | 2 ++ src/components/card/Description.vue | 6 ++++++ 2 files changed, 8 insertions(+) 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;