diff options
author | silverwind <me@silverwind.io> | 2022-10-19 22:12:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 21:12:37 +0100 |
commit | 4b4adb1cc924ba086a89b309869690903b776d6c (patch) | |
tree | 6eb5636fcaa3f778bf4d136994216b9fa9476372 /web_src/js/features | |
parent | 19df07f0219e63ee0328397667a85121020b07ee (diff) | |
download | gitea-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.js | 1 |
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) { |