From d96817f0d061be7bb141df8bf3afff3ed599a4c8 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 29 Nov 2021 16:22:33 +0100 Subject: [PATCH] update font updater --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 9733a886eb..2e0f095a8a 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -290,7 +290,7 @@ export const EditorUI = (props: EditorUIProps) => { props.editorAPI.getFontSize = () => { if (!editorRef.current) return - return editorRef.current.getOption(42).fontSize + return editorRef.current.getOption(43).fontSize } (window as any).addRemixBreakpoint = (position) => { // make it available from e2e testing... @@ -331,10 +331,10 @@ export const EditorUI = (props: EditorUIProps) => { } }) editor.addCommand(monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyCode.US_EQUAL, () => { - editor.updateOptions({ fontSize: editor.getOption(42).fontSize + 1 }) + editor.updateOptions({ fontSize: editor.getOption(43).fontSize + 1 }) }) editor.addCommand(monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyCode.US_MINUS, () => { - editor.updateOptions({ fontSize: editor.getOption(42).fontSize - 1 }) + editor.updateOptions({ fontSize: editor.getOption(43).fontSize - 1 }) }) }