mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -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,
|
||||
useFocusHandler,
|
||||
} from "./content-editable";
|
||||
import { pageTheme } from "$lib/sveltelib/theme";
|
||||
|
||||
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>
|
||||
|
||||
<anki-editable
|
||||
class:nightMode={$pageTheme.isDark}
|
||||
contenteditable="true"
|
||||
role="textbox"
|
||||
tabindex="0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue