Skip to content

Build your personal knowledge base with Trilium Notes

add scrolling margins, #1181

zadam960d7dede33d
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 6499634eb4..5d78a69047 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -307,6 +307,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
keyboard: false, // we takover keyboard handling in the hotkeys plugin
extensions: utils.isMobile() ? ["dnd5", "clones"] : ["hotkeys", "dnd5", "clones"],
source: treeData,
+ scrollOfs: {
+ top: 200,
+ bottom: 200
+ },
scrollParent: this.$tree,
minExpandLevel: 2, // root can't be collapsed
click: (event, data) => {