Skip to content

Commit ee194c5

Browse files
birkskyumMilo
authored andcommitted
configure monaco properly
1 parent 5e52ac5 commit ee194c5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

packages/solid-repl/repl/main.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,3 @@ div[contenteditable='true']:focus {
2727
.dark {
2828
color-scheme: dark;
2929
}
30-
31-
div.view-lines.monaco-mouse-cursor-text {
32-
font-family: Menlo, Monaco, 'Courier New', monospace !important;
33-
}
34-
35-
textarea.monaco-mouse-cursor-text:focus {
36-
box-shadow: unset;
37-
}

packages/solid-repl/src/components/editor/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const Editor: Component<{
8181
onMount(() => {
8282
editor = mEditor.create(parent, {
8383
model: null,
84+
fontFamily:'Menlo, Monaco, "Courier New", monospace',
8485
automaticLayout: true,
8586
readOnly: props.disabled,
8687
fontSize: zoomState.fontSize,

0 commit comments

Comments
 (0)