Skip to content

Commit

Permalink
📝 闪卡支持设置是否启用标记制卡 #7794
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 28, 2023
1 parent ca397b0 commit 3da72d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/config/flashcard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ export const flashcard = {
</label>`;
/// #endif
return `${responsiveHTML}
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.flashcardMark}
<div class="b3-label__text">${window.siyuan.languages.flashcardMarkTip}</div>
</div>
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="mark" type="checkbox"${window.siyuan.config.flashcard.mark ? " checked" : ""}/>
</label>
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.flashcardList}
Expand Down
1 change: 1 addition & 0 deletions app/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ declare interface IConfig {
flashcard: {
newCardLimit: number
reviewCardLimit: number
mark: boolean
list: boolean
superBlock: boolean
deck: boolean
Expand Down

0 comments on commit 3da72d4

Please sign in to comment.