From b83699d02a6af6bc8dd128fe1fb143bfebe19cf9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 4 Oct 2023 11:18:44 +0800 Subject: [PATCH] :recycle: https://github.com/siyuan-note/siyuan/issues/9005 --- app/src/config/flashcard.ts | 88 ++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 36 deletions(-) diff --git a/app/src/config/flashcard.ts b/app/src/config/flashcard.ts index e247dedd3..c15a6fc19 100644 --- a/app/src/config/flashcard.ts +++ b/app/src/config/flashcard.ts @@ -3,40 +3,7 @@ import {fetchPost} from "../util/fetch"; export const flashcard = { element: undefined as Element, genHTML: () => { - let responsiveHTML = ""; - /// #if MOBILE - responsiveHTML = `
- ${window.siyuan.languages.flashcardNewCardLimit} -
- -
${window.siyuan.languages.flashcardNewCardLimitTip}
-
-
- ${window.siyuan.languages.flashcardReviewCardLimit} -
- -
${window.siyuan.languages.flashcardReviewCardLimitTip}
-
`; - /// #else - responsiveHTML = ` -`; - /// #endif - return `${responsiveHTML} -`; + /// #endif + return responsiveHTML; }, bindEvent: () => { flashcard.element.querySelectorAll("input").forEach((item) => {