Vanessa 2024-04-07 23:33:02 +08:00
parent 006cb533ac
commit fa0f062421
2 changed files with 20 additions and 12 deletions

View file

@ -861,5 +861,7 @@ export const addDragFill = (cellElement: Element) => {
return;
}
cellElement.classList.add("av__cell--active");
cellElement.insertAdjacentHTML("beforeend", `<div aria-label="${window.siyuan.languages.dragFill}" class="av__drag-fill ariaLabel"></div>`);
if (!cellElement.querySelector(".av__drag-fill")) {
cellElement.insertAdjacentHTML("beforeend", `<div aria-label="${window.siyuan.languages.dragFill}" class="av__drag-fill ariaLabel"></div>`);
}
};