Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:children_crossing: fix https://github.com/siyuan-note/siyuan/issues/5944

Vanessafb47ee41cad6
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts
index 0bbcbd4ce3..66b00608c1 100644
--- a/app/src/block/Panel.ts
+++ b/app/src/block/Panel.ts
@@ -295,10 +295,6 @@ export class BlockPanel {
setPosition(this.element, targetRect.left, targetRect.top + targetRect.height + 4, targetRect.height + 12, 8);
}
- const maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px";
- this.element.style.maxHeight = maxHeight;
- if (this.nodeIds.length > 1) {
- this.element.style.height = maxHeight;
- }
+ this.element.style.maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px";
}
}