Skip to content

Commit

Permalink
fix: larger font size (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Jun 22, 2023
1 parent db8c1bd commit a1a3fe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/editor/MonacoEditor.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
<script lang="ts">
export default {
editorType: 'monaco'
}
</script>

<script setup lang="ts">
import Monaco from '../monaco/Monaco.vue'
import type { PreviewMode } from '../types';
import type { PreviewMode } from '../types'
defineProps<{
value: string;
filename: string;
value: string
filename: string
readonly?: boolean
mode?: PreviewMode
}>()
const emits = defineEmits<{
(e: 'change', code: string): void;
(e: 'change', code: string): void
}>()
defineOptions({
editorType: 'monaco',
})
const onChange = (code: string) => {
emits('change', code)
}
Expand Down
1 change: 1 addition & 0 deletions src/monaco/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ onMounted(async () => {
...(props.readonly
? { value: props.value, language: lang.value }
: { model: null }),
fontSize: 13,
theme,
readOnly: props.readonly,
automaticLayout: true,
Expand Down

0 comments on commit a1a3fe1

Please sign in to comment.