start of mobile layout

This commit is contained in:
zadam
2020-03-01 11:04:42 +01:00
parent f64b343d8d
commit 4f744564f2
6 changed files with 199 additions and 233 deletions

View File

@@ -66,7 +66,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
this.$widget.fancytree({
autoScroll: true,
keyboard: false, // we takover keyboard handling in the hotkeys plugin
extensions: ["hotkeys", "dnd5", "clones"],
extensions: utils.isMobile() ? ["clones"] : ["hotkeys", "dnd5", "clones"],
source: treeData,
scrollParent: this.$widget,
minExpandLevel: 2, // root can't be collapsed