Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/content embed: hide the current line indication in CodeMirror when the widget is not focused

Adorian Doran42ac51d9ca15
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 9e028735e4..e2f84ba9ec 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -1503,7 +1503,8 @@ body.mobile .modal-content-with-sidebar > .modal-main > .modal-header > .modal-t
padding: 0;
}
-pre.code-embed-editor.read-only .cm-activeLine {
+pre.code-embed-editor.read-only .cm-activeLine,
+pre.code-embed-editor > .cm-editor:not(.cm-focused) .cm-activeLine {
background-color: transparent;
}