aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-10-19 22:12:37 +0200
committerGitHub <noreply@github.com>2022-10-19 21:12:37 +0100
commit4b4adb1cc924ba086a89b309869690903b776d6c (patch)
tree6eb5636fcaa3f778bf4d136994216b9fa9476372 /web_src/js/features
parent19df07f0219e63ee0328397667a85121020b07ee (diff)
downloadgitea-4b4adb1cc924ba086a89b309869690903b776d6c.tar.gz
gitea-4b4adb1cc924ba086a89b309869690903b776d6c.zip
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
Diffstat (limited to 'web_src/js/features')
-rw-r--r--web_src/js/features/codeeditor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/codeeditor.js b/web_src/js/features/codeeditor.js
index a22043c9d4..e848fb53c7 100644
--- a/web_src/js/features/codeeditor.js
+++ b/web_src/js/features/codeeditor.js
@@ -17,6 +17,7 @@ const baseOptions = {
rulers: false,
scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6},
scrollBeyondLastLine: false,
+ automaticLayout: true,
};
function getEditorconfig(input) {