mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
fix: fontFamily setting
This commit is contained in:
parent
8959c630ae
commit
d23cac506c
@ -190,6 +190,10 @@ export class StrudelMirror {
|
||||
}
|
||||
setFontFamily(family) {
|
||||
this.root.style.fontFamily = family;
|
||||
const scroller = this.root.querySelector('.cm-scroller');
|
||||
if (scroller) {
|
||||
scroller.style.fontFamily = family;
|
||||
}
|
||||
}
|
||||
reconfigureExtension(key, value) {
|
||||
if (!extensions[key]) {
|
||||
|
||||
@ -60,10 +60,8 @@ import HeadCommonNew from '../../components/HeadCommonNew.astro';
|
||||
<option>vscode</option>
|
||||
</select> </label
|
||||
><br />
|
||||
<!-- <label>fontFamily
|
||||
<label>fontFamily
|
||||
<select name="fontFamily">
|
||||
<option>monospace</option>
|
||||
<option>helvetica</option>
|
||||
<option value="monospace">monospace</option>
|
||||
<option value="BigBlueTerminal">BigBlueTerminal</option>
|
||||
<option value="x3270">x3270</option>
|
||||
@ -76,7 +74,7 @@ import HeadCommonNew from '../../components/HeadCommonNew.astro';
|
||||
<option value="mode7">mode7</option>
|
||||
</select>
|
||||
</label>
|
||||
<br /> -->
|
||||
<br />
|
||||
<label>fontSize <input type="number" name="fontSize" /></label>
|
||||
<br />
|
||||
<label><input type="checkbox" name="isLineNumbersDisplayed" />isLineNumbersDisplayed</label>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user