mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 14:34:30 +01:00
fix(tree): keep moved notes always visible
This commit is contained in:
parent
64a756cc04
commit
dd34f7a467
@ -1615,6 +1615,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
if (beforeNode !== null) {
|
if (beforeNode !== null) {
|
||||||
branchService.moveBeforeBranch([node.data.branchId], beforeNode.data.branchId);
|
branchService.moveBeforeBranch([node.data.branchId], beforeNode.data.branchId);
|
||||||
|
node.makeVisible({ scrollIntoView: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1627,6 +1628,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
if (afterNode !== null) {
|
if (afterNode !== null) {
|
||||||
branchService.moveAfterBranch([node.data.branchId], afterNode.data.branchId);
|
branchService.moveAfterBranch([node.data.branchId], afterNode.data.branchId);
|
||||||
|
node.makeVisible({ scrollIntoView: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user