An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 块滚动条跟随滚动 https://github.com/siyuan-note/siyuan/issues/4612
Liang Dingcff3266ce280
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.goindex af20d8e511..67f9bcce17 100644--- a/kernel/model/blockinfo.go+++ b/kernel/model/blockinfo.go@@ -163,6 +163,10 @@ func GetBlockIndex(id string) (ret int) {return}+ rootChild := node+ for ; nil == rootChild.Parent || ast.NodeDocument != rootChild.Parent.Type; rootChild = rootChild.Parent {+ }+ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {if !entering {return ast.WalkContinue@@ -173,7 +177,7 @@ func GetBlockIndex(id string) (ret int) {}ret++- if node == n {+ if n.ID == rootChild.ID {return ast.WalkStop}return ast.WalkContinue