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
disable shield background in distraction free mode, fixes #226
azivner040bb138005c
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.jsindex fbc9787d81..f62e42135a 100644--- a/src/public/javascripts/services/entrypoints.js+++ b/src/public/javascripts/services/entrypoints.js@@ -60,6 +60,7 @@ function registerEntrypoints() {// when hiding switch display to block, otherwise grid still tries to display columns which shows// left empty column$container.css("display", $container.css("display") === "grid" ? "block" : "grid");+ $container.toggleClass("distraction-free-mode");});// hide (toggle) everything except for the note content for distraction free writingdiff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.cssindex 652914dbf8..70588c39c4 100644--- a/src/public/stylesheets/style.css+++ b/src/public/stylesheets/style.css@@ -99,7 +99,9 @@ body {overflow: auto;}-#note-detail-wrapper.protected {+/** we disable shield background when in distraction free mode because I couldn't get it to stay static+ (it kept growing with content) */+#container:not(.distraction-free-mode) #note-detail-wrapper.protected {/* DON'T COLLAPSE THE RULES INTO SINGLE ONE, BACKGROUND WON'T DISPLAY */background: url('/images/shield.svg') no-repeat;background-size: contain;