An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: Skip redundant database column width updates https://github.com/siyuan-note/siyuan/issues/12952
Daniel3a96cec37a5d
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex c54cb185d0..48e8de940d 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1410,6 +1410,7 @@ export class WYSIWYG {const headerTop = headerRect.top;const guideHeight = Math.round(headerRect.height);let newWidth: number;+ let resizeSnapped: boolean;let resizeGuide: HTMLElement;let resizeTip: HTMLElement;let pendingResize: { width: number, snapped: boolean } | undefined;@@ -1449,11 +1450,15 @@ export class WYSIWYG {}const currentResize = pendingResize;pendingResize = undefined;+ if (newWidth === currentResize.width && resizeSnapped === currentResize.snapped) {+ return;+ }newWidth = currentResize.width;+ resizeSnapped = currentResize.snapped;columnElements.forEach(columnElement => {columnElement.style.width = newWidth + "px";});- updateResizePreview(currentResize.snapped);+ updateResizePreview(resizeSnapped);};documentSelf.onmousemove = (moveEvent: MouseEvent) => {pendingResize = getAVColumnResizeWidth(