fix(tree): keep moved notes always visible

This commit is contained in:
SiriusXT 2025-11-18 11:07:28 +08:00
parent 64a756cc04
commit dd34f7a467

View File

@ -1615,6 +1615,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
if (beforeNode !== null) {
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) {
branchService.moveAfterBranch([node.data.branchId], afterNode.data.branchId);
node.makeVisible({ scrollIntoView: true });
}
}