mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-09 15:57:10 -04:00
customizable font family
This commit is contained in:
@@ -101,6 +101,7 @@ export default function CodeMirror({
|
||||
theme,
|
||||
keybindings,
|
||||
fontSize = 18,
|
||||
fontFamily = 'monospace',
|
||||
options,
|
||||
editorDidMount,
|
||||
}) {
|
||||
@@ -135,7 +136,7 @@ export default function CodeMirror({
|
||||
return staticExtensions;
|
||||
}, [keybindings]);
|
||||
return (
|
||||
<div style={{ fontSize }} className="w-full">
|
||||
<div style={{ fontSize, fontFamily }} className="w-full">
|
||||
<_CodeMirror
|
||||
value={value}
|
||||
theme={theme || strudelTheme}
|
||||
|
||||
Reference in New Issue
Block a user