Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fixed background of protected notes
azivner8eff18922c7b
diff --git a/public/javascripts/note_editor.js b/public/javascripts/note_editor.jsindex 4151102dd6..c2e328a969 100644--- a/public/javascripts/note_editor.js+++ b/public/javascripts/note_editor.js@@ -80,12 +80,12 @@ const noteEditor = (function() {function setNoteBackgroundIfProtected(note) {if (note.detail.is_protected) {- $("#note-detail").addClass("protected");+ $("#note-detail-wrapper").addClass("protected");protectButton.hide();unprotectButton.show();}else {- $("#note-detail").removeClass("protected");+ $("#note-detail-wrapper").removeClass("protected");protectButton.show();unprotectButton.hide();}diff --git a/public/stylesheets/style.css b/public/stylesheets/style.cssindex f0e74febe6..e23ce30df5 100644--- a/public/stylesheets/style.css+++ b/public/stylesheets/style.css@@ -30,7 +30,7 @@overflow: auto;}-#note-detail.protected {+#note-detail-wrapper.protected {background-color: #eee;}diff --git a/views/index.ejs b/views/index.ejsindex 905faa9e70..03253f7190 100644--- a/views/index.ejs+++ b/views/index.ejs@@ -94,7 +94,7 @@</div></div>- <div style="overflow: auto; grid-area: note-content; padding-left: 10px;">+ <div style="overflow: auto; grid-area: note-content; padding-left: 10px; padding-top: 10px;" id="note-detail-wrapper"><div id="note-detail"></div></div></div>