mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
MiniRepl: consume font settings
This commit is contained in:
parent
9971867e2f
commit
d2dffe3186
@ -24,6 +24,7 @@ export function MiniRepl({
|
||||
onPaint,
|
||||
canvasHeight = 200,
|
||||
fontSize = 18,
|
||||
fontFamily,
|
||||
hideHeader = false,
|
||||
theme,
|
||||
keybindings,
|
||||
@ -156,6 +157,7 @@ export function MiniRepl({
|
||||
onChange={setCode}
|
||||
onViewChanged={setView}
|
||||
theme={theme}
|
||||
fontFamily={fontFamily}
|
||||
fontSize={fontSize}
|
||||
keybindings={keybindings}
|
||||
/>
|
||||
|
||||
@ -7,3 +7,7 @@
|
||||
border: 1px solid var(--lineHighlight);
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.cm-scroller {
|
||||
font-family: inherit !important;
|
||||
}
|
||||
|
||||
@ -60,6 +60,8 @@ export function MiniRepl({
|
||||
theme={themes[theme]}
|
||||
hideHeader={hideHeader}
|
||||
keybindings={keybindings}
|
||||
fontFamily={fontFamily}
|
||||
fontSize={fontSize}
|
||||
onPaint={
|
||||
claviature
|
||||
? (ctx, time, haps, drawTime) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user