Skip to content

Commit

Permalink
Update Playground.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Apr 23, 2024
1 parent 74f282b commit 8cb0b24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/.vitepress/theme/Playground.vue
Expand Up @@ -6,6 +6,7 @@ import { computed, onMounted, ref, shallowRef, watch } from 'vue';
import { useBreakpoints } from './breakpoint';
import { useDialect } from './dialect';
import { useDarkMode } from './dark-mode';
const formatter = {
cockroachdb: 'postgresql',
Expand All @@ -20,6 +21,7 @@ const formatter = {
};
const { dialect } = useDialect();
const { isDark } = useDarkMode();
const { type } = useBreakpoints();
const isVertical = computed(() => ['xs', 'sm'].includes(type.value));
Expand Down Expand Up @@ -125,7 +127,7 @@ watch([code, dialect], () => {
<vue-monaco-editor
id="editor"
language="typescript"
theme="vs-dark"
:theme="isDark ? 'vs-dark' : 'vs-light'"
v-model:value="code"
:options="editorOptions"
:saveViewState="false"
Expand All @@ -135,7 +137,7 @@ watch([code, dialect], () => {
<vue-monaco-editor
id="output"
language="sql"
theme="vs-dark"
:theme="isDark ? 'vs-dark' : 'vs-light'"
v-model:value="sql"
:options="outputEditorOptions"
:saveViewState="false"
Expand Down

0 comments on commit 8cb0b24

Please sign in to comment.