Enable Monaco automaticLayout (#21516)

Enable
[`automaticLayout`](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IDiffEditorOptions.html#automaticLayout)
for monaco so it can reflow itself.

Fixes: https://github.com/go-gitea/gitea/issues/21508
tokarchuk/v1.17
silverwind 2 years ago committed by GitHub
parent 19df07f021
commit 4b4adb1cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      web_src/js/features/codeeditor.js

@ -17,6 +17,7 @@ const baseOptions = {
rulers: false, rulers: false,
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6}, scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
automaticLayout: true,
}; };
function getEditorconfig(input) { function getEditorconfig(input) {

Loading…
Cancel
Save