diff --git a/src/components/History/RunCard.vue b/src/components/History/RunCard.vue index 5359c60..e63ee0d 100644 --- a/src/components/History/RunCard.vue +++ b/src/components/History/RunCard.vue @@ -2,8 +2,6 @@ import { ref, toRefs, watch } from "vue"; import * as monaco from "monaco-editor"; -import { useDarkMode } from "@/utils/color-theme"; - type Run = { runNo: number; state?: string | null | undefined; @@ -19,8 +17,6 @@ interface Props { const props = defineProps(); -const { isDark } = useDarkMode(); - const { run } = toRefs(props); const stateChipColor = ref({ @@ -85,21 +81,11 @@ watch( selectionHighlight: false, occurrencesHighlight: false, renderLineHighlight: "none", - theme: isDark.value ? "nextline-dark" : "nextline-light", }); val.style.height = `${editor.getContentHeight()}px`; }, { immediate: true } ); -watch( - isDark, - (val) => { - monaco.editor.setTheme( - val ? "nextline-dark" : "nextline-light" - ); - }, - { immediate: true } -);