Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/11715

Vanessac11cb2eba43c
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 5fda31d781..4d778d5ac9 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -426,12 +426,7 @@ export class WYSIWYG {
documentSelf.onmousemove = (moveEvent: MouseEvent) => {
newWidth = Math.max(oldWidth + (moveEvent.clientX - event.clientX), 25);
scrollElement.querySelectorAll(".av__row, .av__row--footer").forEach(item => {
- const cellElement = item.querySelector(`[data-col-id="${dragColId}"]`) as HTMLElement;
- if (cellElement.previousElementSibling) {
- cellElement.style.width = newWidth + "px";
- } else {
- cellElement.style.width = newWidth + 24 + "px";
- }
+ (item.querySelector(`[data-col-id="${dragColId}"]`) as HTMLElement).style.width = newWidth + "px";
});
stickyRow(nodeElement, contentRect, "bottom");
};