mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -565,7 +565,13 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
||||
if (key === Constants.CUSTOM_RIFF_DECKS && data.new[Constants.CUSTOM_RIFF_DECKS] !== data.old[Constants.CUSTOM_RIFF_DECKS]) {
|
||||
item.style.animation = "addCard 450ms linear";
|
||||
setTimeout(() => {
|
||||
item.style.animation = "";
|
||||
if (item.parentElement) {
|
||||
item.style.animation = "";
|
||||
} else {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`).forEach((realItem: HTMLElement) => {
|
||||
realItem.style.animation = "";
|
||||
})
|
||||
}
|
||||
}, 450);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user