ui: editor: use selected font family

pull/422/head
undefined 2 years ago
parent 9e19eb2614
commit 48d79496d4

@ -97,6 +97,7 @@ export default class Editor extends DOMAttachedObject {
hideCursorInOverviewRuler: true,
overviewRulerLanes: 0,
overviewRulerBorder: false,
fontFamily: UserContext.codeFontFamily,
};
if (autoLayout) cfg.automaticLayout = true;
let prevHeight = 0;

@ -32,6 +32,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class MonacoEditor e
const config = {
theme: 'vs-light',
...customOptions,
fontFamily: UserContext.codeFontFamily,
lineNumbers: true,
glyphMargin: true,
lightbulb: { enabled: true },

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.39.17",
"version": "4.39.18",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

Loading…
Cancel
Save