diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index afec3f89b..cdfb0fd54 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1133,7 +1133,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme alignImgLeft(protyle, nodeElement, [assetElement], id, html); } }).element); - const width = imgElement.style.width.endsWith("%") ? parseInt(imgElement.style.width) : 0; + const width = imgElement.style.width.endsWith("vw") ? parseInt(imgElement.style.width) : 0; let rangeElement: HTMLInputElement; window.siyuan.menus.menu.append(new MenuItem({ label: window.siyuan.languages.width, @@ -1170,14 +1170,13 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme }, { iconHTML: "", type: "readonly", - label: `