mirror of
https://github.com/zadam/trilium.git
synced 2025-02-21 21:43:55 +08:00
add scrolling margins, #1181
This commit is contained in:
parent
224fbdc8cd
commit
960d7dede3
1 changed files with 4 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue