mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
dc90d05086
commit
462469c490
2 changed files with 8 additions and 3 deletions
|
@ -21,7 +21,10 @@ export const insertGalleryItemAnimation = (options: {
|
|||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${options.groupID}"] `);
|
||||
if (bodyElement && ["updated", "created"].includes(bodyElement.getAttribute("data-dtype")) &&
|
||||
bodyElement.getAttribute("data-content") !== "_@today@_") {
|
||||
sideItemElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__gallery-add').previousElementSibling;
|
||||
sideItemElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__gallery-add')?.previousElementSibling;
|
||||
if (!sideItemElement) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
let cellsHTML = "";
|
||||
sideItemElement?.querySelectorAll(".av__cell").forEach((item: HTMLElement) => {
|
||||
|
|
|
@ -130,9 +130,11 @@ export const insertAttrViewBlockAnimation = (options: {
|
|||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${options.groupID}"] `);
|
||||
if (bodyElement && ["updated", "created"].includes(bodyElement.getAttribute("data-dtype")) &&
|
||||
bodyElement.getAttribute("data-content") !== "_@today@_") {
|
||||
previousElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__row--util').previousElementSibling;
|
||||
previousElement = options.blockElement.querySelector('.av__body[data-content="_@today@_"] .av__row--util')?.previousElementSibling;
|
||||
if (!previousElement) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let cellsHTML = '<div class="av__colsticky"><div class="av__firstcol"><svg><use xlink:href="#iconUncheck"></use></svg></div></div>';
|
||||
const pinIndex = previousElement.querySelectorAll(".av__colsticky .av__cell").length - 1;
|
||||
if (pinIndex > -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue