mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Added: Flag showing
This commit is contained in:
parent
ef4500c7ef
commit
028b285849
2 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ Copyright: Ankitects Pty Ltd and contributors
|
|||
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
-->
|
||||
<script>
|
||||
import "./index.scss";
|
||||
|
||||
import { onMount } from "svelte";
|
||||
import { ReviewerState, updateNightMode } from "./reviewer";
|
||||
import ReviewerBottom from "./reviewer-bottom/ReviewerBottom.svelte";
|
||||
|
|
@ -16,6 +18,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
globalThis.anki.changeReceived = () => state.showQuestion(null);
|
||||
_blockDefaultDragDropBehavior();
|
||||
});
|
||||
$: cardData = state.cardData;
|
||||
$: flag = $cardData?.queue?.cards[0].card?.flags;
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
|
@ -23,6 +27,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
<ReviewerBottom {state}></ReviewerBottom>
|
||||
</div>
|
||||
|
||||
{#if flag}
|
||||
<div id="_flag" style:color={`var(--flag-${flag})`}>⚑</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
div {
|
||||
height: 100vh;
|
||||
|
|
|
|||
1
ts/routes/reviewer/index.scss
Normal file
1
ts/routes/reviewer/index.scss
Normal file
|
|
@ -0,0 +1 @@
|
|||
@use "../../reviewer/reviewer.scss"
|
||||
Loading…
Reference in a new issue