mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 20:44:28 -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
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
-->
|
-->
|
||||||
<script>
|
<script>
|
||||||
|
import "./index.scss";
|
||||||
|
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { ReviewerState, updateNightMode } from "./reviewer";
|
import { ReviewerState, updateNightMode } from "./reviewer";
|
||||||
import ReviewerBottom from "./reviewer-bottom/ReviewerBottom.svelte";
|
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);
|
globalThis.anki.changeReceived = () => state.showQuestion(null);
|
||||||
_blockDefaultDragDropBehavior();
|
_blockDefaultDragDropBehavior();
|
||||||
});
|
});
|
||||||
|
$: cardData = state.cardData;
|
||||||
|
$: flag = $cardData?.queue?.cards[0].card?.flags;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -23,6 +27,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<ReviewerBottom {state}></ReviewerBottom>
|
<ReviewerBottom {state}></ReviewerBottom>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if flag}
|
||||||
|
<div id="_flag" style:color={`var(--flag-${flag})`}>⚑</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
div {
|
||||||
height: 100vh;
|
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