forked from pdsls.dev/pdsls
this repo has no description

set editor font style

Changed files
+5
src
components
+5
src/components/editor.tsx
··· 3 3 import * as monaco from "monaco-editor"; 4 4 import { onMount } from "solid-js"; 5 5 6 + const isTouchDevice = "ontouchstart" in window || navigator.maxTouchPoints > 1; 7 + 6 8 self.MonacoEnvironment = { 7 9 getWorker(_, label) { 8 10 if (label === "json") return new jsonWorker(); ··· 22 24 model: props.model, 23 25 wordWrap: "on", 24 26 automaticLayout: true, 27 + fontFamily: "Roboto Mono", 28 + lineNumbers: isTouchDevice ? "off" : "on", 29 + fontSize: 12, 25 30 }); 26 31 }); 27 32