Skip to content

Build your personal knowledge base with Trilium Notes

fix relation map display in distraction free mode

azivner6652ddc20a11
diff --git a/src/public/javascripts/services/entrypoints.js b/src/public/javascripts/services/entrypoints.js
index 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 writing
diff --git a/src/public/stylesheets/relation_map.css b/src/public/stylesheets/relation_map.css
index 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 */
}