Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/8202

Vanessa3d6a0f461913
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 1513b15bdf..2dc074261c 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -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;