From 966e1d4a5c3791ddcb875935978acb5b1adf37f3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 27 Aug 2023 12:10:35 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8683 --- app/src/protyle/wysiwyg/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index c32b3c0fd..9b21467c4 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -425,7 +425,9 @@ export class WYSIWYG { dragElement.style.height = (dragHeight + (moveEvent.clientY - y)) + "px"; } } else { - dragElement.parentElement.parentElement.style.maxWidth = (parseInt(dragElement.style.width) + 10) + "px"; + dragElement.parentElement.parentElement.style.width = (parseInt(dragElement.style.width) + 10) + "px"; + // 历史兼容 + dragElement.parentElement.parentElement.style.maxWidth = ""; } };