This commit is contained in:
@@ -102,4 +102,5 @@ const basicSetup: Extension = [
|
|||||||
keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap]),
|
keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap]),
|
||||||
mathPlugin(),
|
mathPlugin(),
|
||||||
placeholder('0.1 + 0.2 = 0.3'),
|
placeholder('0.1 + 0.2 = 0.3'),
|
||||||
|
EditorView.lineWrapping,
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ body {
|
|||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root,
|
#root,
|
||||||
@@ -22,10 +23,6 @@ body {
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cm-scroller {
|
|
||||||
margin-right: -14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.math-result {
|
.math-result {
|
||||||
color: rgb(80, 80, 80);
|
color: rgb(80, 80, 80);
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
@@ -66,7 +63,7 @@ body {
|
|||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 8px 0;
|
margin-bottom: 8px;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user