mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
bb52da5bbc
commit
28bae43925
4 changed files with 9 additions and 39 deletions
|
|
@ -508,13 +508,6 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
|||
});
|
||||
} else if (operation.action === "setAttrViewWrapField") {
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.avID}"]`)).forEach((item: HTMLElement) => {
|
||||
item.querySelectorAll(".av__gallery-fields").forEach(fieldItem => {
|
||||
if (operation.data) {
|
||||
fieldItem.classList.add("av__gallery-fields--wrap");
|
||||
} else {
|
||||
fieldItem.classList.remove("av__gallery-fields--wrap");
|
||||
}
|
||||
});
|
||||
item.querySelectorAll(".av__cell").forEach(fieldItem => {
|
||||
fieldItem.setAttribute("data-wrap", operation.data.toString());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue