From 097501c84c56d5a0083a5bd29fc7efe686ee70b9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 7 Sep 2023 22:50:46 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9123 --- app/src/block/Panel.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts index 788d301ea..eba7ed9ee 100644 --- a/app/src/block/Panel.ts +++ b/app/src/block/Panel.ts @@ -294,6 +294,7 @@ export class BlockPanel { setPosition(this.element, targetRect.left, targetRect.bottom + 4, targetRect.height + 12, 8); } else if (typeof this.x === "number" && typeof this.y === "number") { setPosition(this.element, this.x, this.y); + this.element.style.maxHeight = Math.floor(window.innerHeight - Math.max(this.y, Constants.SIZE_TOOLBAR_HEIGHT) - 12) + "px"; } const elementRect = this.element.getBoundingClientRect(); if (this.targetElement && !this.targetElement.classList.contains("protyle-wysiwyg__embed")) {