Skip to content

Build your personal knowledge base with Trilium Notes

reverted some experimental changes regarding sidebar resizing

zadam723fc42d885b
diff --git a/src/public/javascripts/services/branches.js b/src/public/javascripts/services/branches.js
index 0314724a0f..22aca46180 100644
--- a/src/public/javascripts/services/branches.js
+++ b/src/public/javascripts/services/branches.js
@@ -110,7 +110,7 @@ async function deleteNodes(nodes) {
next = nodes[0].getPrevSibling();
}
- if (!next && !await hoistedNoteService.isTopLevelNode(nodes[0])) {
+ if (!next && !await hoistedNoteService.isRootNode(nodes[0])) {
next = nodes[0].getParent();
}
diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs
index da2232a457..1dedf66fcb 100644
--- a/src/views/desktop.ejs
+++ b/src/views/desktop.ejs
@@ -6,7 +6,7 @@
</head>
<body class="desktop theme-<%= theme %>" style="--main-font-size: <%= mainFontSize %>%; --tree-font-size: <%= treeFontSize %>%; --detail-font-size: <%= detailFontSize %>%;">
<noscript>Trilium requires JavaScript to be enabled.</noscript>
-<div id="container" style="display: none; grid-template-columns: <%= leftPaneWidthPercent %>fr <%= rightPaneWidthPercent %>fr">
+<div id="container" style="display: none; grid-template-columns: minmax(<%= leftPaneMinWidth %>px, <%= leftPaneWidthPercent %>fr) minmax(0, <%= rightPaneWidthPercent %>fr)">
<div id="header" class="hide-toggle">
<div id="history-navigation" style="display: none;">
<a id="history-back-button" title="Go to previous note." class="icon-action jam jam-arrow-square-left"></a>
@@ -106,7 +106,7 @@
</div>
</div>
- <div id="left-pane" class="hide-toggle" style="resize: horizontal; overflow: scroll;">
+ <div id="left-pane" class="hide-toggle">
<div id="global-buttons">
<a id="create-top-level-note-button" title="Create new top level note" class="icon-action jam jam-plus-circle"></a>