diff --git a/src/shared/CodeEditor.vue b/src/shared/CodeEditor.vue index 638a7e8..0d56e2d 100644 --- a/src/shared/CodeEditor.vue +++ b/src/shared/CodeEditor.vue @@ -9,13 +9,10 @@ import { oneDark } from "./themes/oneDark" import { smoothy } from "./themes/smoothy" import { LANGUAGE } from "~/utils/types" import { isDark } from "./composables/dark" -import { useThemeVars } from "naive-ui" - -const theme = useThemeVars() const styleTheme = EditorView.baseTheme({ - "&": { - "font-family": theme.value.fontFamilyMono, + "&.cm-scroller": { + "font-family": "Consolas", }, "&.cm-editor.cm-focused": { outline: "none",