mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -1380,12 +1380,12 @@ const genImageWidthMenu = (label: string, assetElement: HTMLElement, imgElement:
|
||||
click() {
|
||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||
if (label === window.siyuan.languages.default) {
|
||||
if (assetElement.style.display === "block") {
|
||||
assetElement.style.width = "";
|
||||
} else {
|
||||
assetElement.removeAttribute("style");
|
||||
}
|
||||
const isCenter = assetElement.style.display === "block"
|
||||
assetElement.removeAttribute("style");
|
||||
imgElement.removeAttribute("style");
|
||||
if (isCenter) {
|
||||
assetElement.style.display = "block";
|
||||
}
|
||||
} else {
|
||||
assetElement.style.width = label;
|
||||
imgElement.style.width = "10000px";
|
||||
|
||||
Reference in New Issue
Block a user