fix relation map display in distraction free mode

This commit is contained in:
azivner 2018-11-14 13:37:45 +01:00
parent e44c7c9947
commit 6652ddc20a
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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 */
}