Skip to content

Commit

Permalink
Merge pull request #3765 from nextcloud/backport/3761/stable24
Browse files Browse the repository at this point in the history
[stable24] Fix text selection in dark mode and modal view
  • Loading branch information
juliusknorr authored Apr 29, 2022
2 parents 25dd71b + f3ad2a3 commit 8efe415
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/card/CardSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions src/components/card/Description.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8efe415

Please sign in to comment.