mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix relation map display in distraction free mode
This commit is contained in:
parent
e44c7c9947
commit
6652ddc20a
@ -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
|
||||
|
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user