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: Hide editor controls while resizing super block columns https://github.com/siyuan-note/siyuan/issues/18581
Daniel96a5ffbc22d1
diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.tsindex 6693ddcf4a..b5716dad40 100644--- a/app/src/protyle/util/tableControl.ts+++ b/app/src/protyle/util/tableControl.ts@@ -426,6 +426,9 @@ export class TableControl {public setHidden(hidden: boolean) {this.element.classList.toggle("fn__none", hidden);+ if (!hidden) {+ this.scheduleRender();+ }}public selectCellRange(anchorCell: HTMLTableCellElement, activeCell: HTMLTableCellElement) {diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex ee8dfef94c..cacb5ce7d3 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1155,6 +1155,8 @@ export class WYSIWYG {!nextElement || sbElement.getAttribute("data-sb-layout") !== "col") {return;}+ hideElements(["gutter"], protyle);+ this.tableControl?.setHidden(true);const oldHTMLs = {prev: previousElement.outerHTML,next: nextElement.outerHTML,@@ -1255,6 +1257,7 @@ export class WYSIWYG {documentSelf.ondragstart = null;documentSelf.onselectstart = null;documentSelf.onselect = null;+ this.tableControl?.setHidden(false);// 仅点击未拖拽,不产生 transaction,避免无意义的更新if (Math.abs(x - mouseupEvent.clientX) <= 0) {return;