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
fix relation map display in distraction free mode
azivner6652ddc20a11
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.jsindex c1aa67c058..fbc9787d81 100644--- a/src/public/javascripts/services/entrypoints.js+++ b/src/public/javascripts/services/entrypoints.js@@ -56,9 +56,10 @@ function registerEntrypoints() {utils.bindShortcut('alt+m', e => {$(".hide-toggle").toggle();+ const $container = $("#container");// 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.css("display", $container.css("display") === "grid" ? "block" : "grid");});// hide (toggle) everything except for the note content for distraction free writingdiff --git a/src/public/stylesheets/relation_map.css b/src/public/stylesheets/relation_map.cssindex 4c16bb4dc9..f75320cf38 100644--- a/src/public/stylesheets/relation_map.css+++ b/src/public/stylesheets/relation_map.css@@ -6,7 +6,8 @@#relation-map-wrapper {position: relative;overflow: hidden !important;- height: 4000px; /* we need to set fixed height. This number is probably enough to cover any screen */+ height: 4000px; /* we need to set fixed dimentions. This number is probably enough to cover any screen */+ width: 4000px;outline: none; /* remove dotted outline on click */}