Skip to content

Commit 54dba19

Browse files
committed
remove overview ruler; remove vertical scroll
1 parent f9a3156 commit 54dba19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/components/MyMonaco.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,10 @@ export function MyMonaco({
415415
formatOnType: true,
416416
autoIndent: "full",
417417
// autoIndent: true,
418+
overviewRulerLanes: 0,
418419
scrollbar: {
419420
alwaysConsumeMouseWheel: false,
421+
vertical: "hidden",
420422
},
421423
}}
422424
onChange={onChange}
@@ -428,7 +430,8 @@ export function MyMonaco({
428430
// max height: 400
429431
const contentHeight = Math.max(
430432
100,
431-
Math.min(400, editor.getContentHeight())
433+
editor.getContentHeight()
434+
// Math.min(400, editor.getContentHeight())
432435
);
433436
// console.log("target height:", contentHeight);
434437
const editorElement = editor.getDomNode();

0 commit comments

Comments
 (0)