From 4ebaee4827c518651a96f0e6f8033a0c5b996ebc Mon Sep 17 00:00:00 2001 From: dtoro Date: Fri, 6 Mar 2026 21:25:51 +0100 Subject: [PATCH] improve monaco --- src/components/graph/ConfigNode.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/graph/ConfigNode.tsx b/src/components/graph/ConfigNode.tsx index d6373a4..f1fb3ab 100644 --- a/src/components/graph/ConfigNode.tsx +++ b/src/components/graph/ConfigNode.tsx @@ -170,7 +170,18 @@ export const ConfigNode = memo(function ConfigNode({ id, data }: Props) { theme="vs-light" onMount={handleEditorMount} onChange={onChange} - options={{ minimap: { enabled: false }, fontSize: 12 }} + options={{ + minimap: { enabled: false }, + fontSize: 12, + lineHeight: 16, + glyphMargin: false, + renderLineHighlight: 'none', + lineDecorationsWidth: 2, + lineNumbersMinChars: 2, + scrollBeyondLastLine: false, + padding: { top: 0, bottom: 4 }, + lineNumbers: 'on', + }} />