Skip to content

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

:bug: Hide table controls while resizing columns https://github.com/siyuan-note/siyuan/issues/18537

Daniel90ab53e8a516
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 1d1447c0df..1890325d69 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1728,6 +1728,7 @@ export class WYSIWYG {
nodeElement.firstElementChild.style.webkitUserModify = "read-only";
nodeElement.style.cursor = "col-resize";
protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
+ this.tableControl?.setHidden(true);
target.removeAttribute("style");
const x = event.clientX;
const colIndex = parseInt(target.getAttribute("data-col-index"));
@@ -1756,6 +1757,7 @@ export class WYSIWYG {
nodeElement.firstElementChild.style.webkitUserModify = "";
nodeElement.style.cursor = "";
protyle.wysiwyg.element.classList.remove("protyle-wysiwyg--hiderange");
+ this.tableControl?.setHidden(false);
documentSelf.onmousemove = null;
documentSelf.onmouseup = null;
documentSelf.ondragstart = null;