mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 12:50:16 +01:00
This commit is contained in:
parent
20b4579170
commit
59360f363e
3 changed files with 24 additions and 16 deletions
9
app/src/boot/compatibleVersion.ts
Normal file
9
app/src/boot/compatibleVersion.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export const img3115 = (imgElement: HTMLElement) => {
|
||||
// 移除 3.1.15 以前 .img width 样式
|
||||
if (imgElement.style.minWidth) {
|
||||
// 居中需要 minWidth 样式,不能移除 style 属性
|
||||
imgElement.style.width = "";
|
||||
} else {
|
||||
imgElement.removeAttribute("style");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue