Skip to content

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

:art: Center table cell menu handles on borders https://github.com/siyuan-note/siyuan/issues/18537

Danielc08991aaa4a7
diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.ts
index a15ac0d21e..6693ddcf4a 100644
--- a/app/src/protyle/util/tableControl.ts
+++ b/app/src/protyle/util/tableControl.ts
@@ -1096,7 +1096,8 @@ export class TableControl {
return;
}
this.cellHandle.classList.remove("fn__none");
- this.setPosition(this.cellHandle, visibleRect.right, visibleRect.top + visibleRect.height / 2);
+ this.cellHandle.style.left = `${visibleRect.right - 0.5}px`;
+ this.cellHandle.style.top = `${Math.round(visibleRect.top + visibleRect.height / 2)}px`;
}
private renderResize() {