From c11cb2eba43c8f476cc07522ef6864412cf0ffad Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 17 Jun 2024 10:35:13 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11715 --- app/src/protyle/wysiwyg/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 5fda31d78..4d778d5ac 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"); };