mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
2ffacea4b8
commit
bd39662215
1 changed files with 5 additions and 5 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue