Vanessa 2024-12-01 12:18:41 +08:00
parent fa14fdc2e6
commit 2e2e2f331b
2 changed files with 4 additions and 1 deletions

View file

@ -1835,7 +1835,7 @@ const genImageHeightMenu = (label: string, imgElement: HTMLElement, protyle: IPr
click() {
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
imgElement.style.height = label === window.siyuan.languages.default ? "" : parseInt(label) + "vh";
imgElement.style.width = "";
imgElement.parentElement.style.width = "";
updateTransaction(protyle, id, nodeElement.outerHTML, html);
focusBlock(nodeElement);
}