Skip to content

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

:bug: Keep table resize handles below captions https://github.com/siyuan-note/siyuan/issues/18537

Daniel5b442602d744
diff --git a/app/src/boot/globalEvent/mousemove.ts b/app/src/boot/globalEvent/mousemove.ts
index 9bf19e9bec..a358b3ddd7 100644
--- a/app/src/boot/globalEvent/mousemove.ts
+++ b/app/src/boot/globalEvent/mousemove.ts
@@ -261,7 +261,8 @@ export const windowMouseMove = (event: MouseEvent) => {
if (tableElement.getAttribute("contenteditable") === "true") {
const captionElement = blockElement.querySelector("caption");
- const captionHeight = (captionElement && captionElement.style.captionSide !== "bottom") ? captionElement.clientHeight : 0;
+ const captionHeight = (captionElement && captionElement.style.captionSide !== "bottom") ?
+ captionElement.getBoundingClientRect().height : 0;
const tableHeight = Math.min(blockElement.querySelector("colgroup").clientHeight,
tableElement.clientHeight - captionHeight);
const rect = cellElement.getBoundingClientRect();