An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 即使块存在,折叠的情况需要也需要 zoomOut,否则折叠块内的光标无法定位
Vanessa05248d66be73
diff --git a/app/src/util/backForward.ts b/app/src/util/backForward.tsindex 4bae18ea29..254ff54ca9 100644--- a/app/src/util/backForward.ts+++ b/app/src/util/backForward.ts@@ -122,7 +122,10 @@ const focusStack = async (stack: IBackStack) => {return true;}});- if (blockElement) {+ if (blockElement &&+ // 即使块存在,折叠的情况需要也需要 zoomOut,否则折叠块内的光标无法定位+ (!stack.zoomId || (stack.zoomId && stack.zoomId === stack.protyle.block.id))+ ) {if (blockElement.getBoundingClientRect().height === 0) {// 切换 tabstack.protyle.model.parent.parent.switchTab(stack.protyle.model.parent.headElement);