Vanessa 2025-10-16 16:54:46 +08:00
parent cc3fcc1e97
commit 3e466486bb

View file

@ -82,8 +82,8 @@ export const genCardHTML = (options: {
<div data-type="fullscreen" class="b3-tooltips b3-tooltips__sw block__icon block__icon--show" aria-label="${window.siyuan.languages.fullscreen}"> <div data-type="fullscreen" class="b3-tooltips b3-tooltips__sw block__icon block__icon--show" aria-label="${window.siyuan.languages.fullscreen}">
<svg><use xlink:href="#iconFullscreen"></use></svg> <svg><use xlink:href="#iconFullscreen"></use></svg>
</div> </div>
<div class="fn__space"></div> <div class="fn__space${options.cardsData.cards.length === 0 ? " fn__none" : ""}"></div>
<div data-type="more" class="b3-tooltips b3-tooltips__sw block__icon block__icon--show" aria-label="${window.siyuan.languages.more}"> <div data-type="more" class="${options.cardsData.cards.length === 0 ? "fn__none " : ""}b3-tooltips b3-tooltips__sw block__icon block__icon--show" aria-label="${window.siyuan.languages.more}">
<svg><use xlink:href="#iconMore"></use></svg> <svg><use xlink:href="#iconMore"></use></svg>
</div> </div>
<div class="fn__space${options.isTab ? " fn__none" : ""}"></div> <div class="fn__space${options.isTab ? " fn__none" : ""}"></div>
@ -874,7 +874,9 @@ const allDone = (countElement: Element, editor: Protyle, actionElements: NodeLis
emptyElement.classList.remove("fn__none"); emptyElement.classList.remove("fn__none");
actionElements[0].classList.add("fn__none"); actionElements[0].classList.add("fn__none");
actionElements[1].classList.add("fn__none"); actionElements[1].classList.add("fn__none");
countElement.parentElement.querySelector('[data-type="more"]').classList.add("fn__none"); const moreElement = countElement.parentElement.querySelector('[data-type="more"]');
moreElement.classList.add("fn__none");
moreElement.previousElementSibling.classList.add("fn__none");
}; };
const newRound = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>, unreviewedCount: number) => { const newRound = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>, unreviewedCount: number) => {