Vanessa 2023-05-09 10:45:12 +08:00
parent 5abfec77b9
commit 3d6a0f4619

View file

@ -225,7 +225,8 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
}) => {
let countHTML = "";
if (flashcard) {
countHTML = `<span class="counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.flashcardNewCard}">${item.newFlashcardCount}</span>
countHTML = `<span class="fn__flex-1"></span>
<span class="counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.flashcardNewCard}">${item.newFlashcardCount}</span>
<span class="counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.flashcardReviewCard}">${item.dueFlashcardCount}</span>
<span class="counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.flashcardCard}">${item.flashcardCount}</span>`;
}
@ -450,6 +451,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
currentItemElements[0].classList.remove("b3-list-item--focus");
target.classList.add("b3-list-item--focus");
}
if (target.getAttribute("data-path") === "/") {
getLeaf(target, flashcard);
}
event.preventDefault();
event.stopPropagation();
break;