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: fix https://github.com/siyuan-note/siyuan/issues/8824
Vanessa01cca63b4a20
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.tsindex 58d60c49f4..4fcc7c41a6 100644--- a/app/src/block/Panel.ts+++ b/app/src/block/Panel.ts@@ -275,6 +275,10 @@ export class BlockPanel {} else {targetRect = this.targetElement.getBoundingClientRect();}+ // 下部位置大的话就置于下部 https://ld246.com/article/1690333302147+ if (window.innerHeight - targetRect.bottom - 4 > targetRect.top + 12) {+ this.element.style.maxHeight = Math.floor(window.innerHeight - targetRect.bottom - 12) + "px";+ }// 靠边不宜拖拽 https://github.com/siyuan-note/siyuan/issues/2937setPosition(this.element, targetRect.left, targetRect.bottom + 4, targetRect.height + 12, 8);} else if (typeof this.x === "number" && typeof this.y === "number") {@@ -282,9 +286,9 @@ export class BlockPanel {}const elementRect = this.element.getBoundingClientRect();if (this.targetElement && elementRect.top < targetRect.top) {- this.element.style.maxHeight = (targetRect.top - elementRect.top - 8) + "px";+ this.element.style.maxHeight = Math.floor(targetRect.top - elementRect.top - 8) + "px";} else {- this.element.style.maxHeight = (window.innerHeight - elementRect.top - 8) + "px";+ this.element.style.maxHeight = Math.floor(window.innerHeight - elementRect.top - 8) + "px";}this.element.classList.add("block__popover--open");} : undefined);