mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix: "card" class included bottombar
This commit is contained in:
parent
45793b3b64
commit
2e0a75ed83
2 changed files with 6 additions and 4 deletions
|
@ -2,9 +2,10 @@
|
|||
import type { Writable } from "svelte/store";
|
||||
|
||||
export let html: Writable<string>
|
||||
export let cardClass: Writable<string>
|
||||
</script>
|
||||
|
||||
<div id="qa" class="card">
|
||||
<div id="qa" class={$cardClass}>
|
||||
{@html $html}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -3,15 +3,16 @@ import { preloadAnswerImages } from "../../reviewer/images"
|
|||
|
||||
export function setupReviewer() {
|
||||
const html = writable("")
|
||||
const cardClass = writable("")
|
||||
|
||||
function showQuestion(q, a, bodyclass) {
|
||||
function showQuestion(q, a, cc) {
|
||||
html.set(q)
|
||||
document.body.className = bodyclass
|
||||
cardClass.set(cc)
|
||||
preloadAnswerImages(a)
|
||||
}
|
||||
|
||||
globalThis._showAnswer = html.set
|
||||
globalThis._showQuestion = showQuestion
|
||||
|
||||
return {html}
|
||||
return {html, cardClass}
|
||||
}
|
Loading…
Reference in a new issue