From dd34f7a467b4377c29d19d5157869a38dffadb4f Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Tue, 18 Nov 2025 11:07:28 +0800 Subject: [PATCH] fix(tree): keep moved notes always visible --- apps/client/src/widgets/note_tree.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.ts index 1fd373559..ebce5289d 100644 --- a/apps/client/src/widgets/note_tree.ts +++ b/apps/client/src/widgets/note_tree.ts @@ -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 }); } }