mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
fix: apply nightMode class to editor in dark mode
This commit is contained in:
parent
8f2144534b
commit
8ee1786e09
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
preventBuiltinShortcuts,
|
preventBuiltinShortcuts,
|
||||||
useFocusHandler,
|
useFocusHandler,
|
||||||
} from "./content-editable";
|
} from "./content-editable";
|
||||||
|
import { pageTheme } from "$lib/sveltelib/theme";
|
||||||
|
|
||||||
export let resolve: (editable: HTMLElement) => void;
|
export let resolve: (editable: HTMLElement) => void;
|
||||||
|
|
||||||
|
|
@ -41,6 +42,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<anki-editable
|
<anki-editable
|
||||||
|
class:nightMode={$pageTheme.isDark}
|
||||||
contenteditable="true"
|
contenteditable="true"
|
||||||
role="textbox"
|
role="textbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue