Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/12423

Vanessa 10 months ago
parent
commit
9f1219ae37
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/src/protyle/wysiwyg/index.ts

+ 1 - 0
app/src/protyle/wysiwyg/index.ts

@@ -642,6 +642,7 @@ export class WYSIWYG {
                 documentSelf.onmousemove = (moveEvent: MouseEvent) => {
                     if (dragElement.tagName === "IMG") {
                         dragElement.parentElement.parentElement.style.width = "";
+                        dragElement.style.height = "";
                     }
                     if (moveEvent.clientX > x - dragWidth + 8 && moveEvent.clientX < mostRight) {
                         if ((dragElement.tagName === "IMG" && !dragElement.parentElement.parentElement.style.minWidth && nodeElement.style.textAlign !== "center") || !isCenter) {