diff options
author | silverwind <me@silverwind.io> | 2020-11-14 04:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 22:57:34 -0500 |
commit | 374ff60465ace2471d0dde121c6a3e1527ab0bec (patch) | |
tree | 76070c023124891a4ee08da8b5db01e13bf90d65 /web_src/less/_editor.less | |
parent | a2efcb6acc85dbd231c402a4c308e76289d06cbd (diff) | |
download | gitea-374ff60465ace2471d0dde121c6a3e1527ab0bec.tar.gz gitea-374ff60465ace2471d0dde121c6a3e1527ab0bec.zip |
Use monaco for the git hook editor (#13552)
Migrate git hook editor to monaco, replacing CodeMirror. Had to do a few
refactors to make the monaco instantiation generic enough to be of use.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/less/_editor.less')
-rw-r--r-- | web_src/less/_editor.less | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/web_src/less/_editor.less b/web_src/less/_editor.less index 4ed211a628..bb69960646 100644 --- a/web_src/less/_editor.less +++ b/web_src/less/_editor.less @@ -53,10 +53,6 @@ border-right: 1px solid var(--color-secondary) !important; } -#edit_area { - display: none; -} - .monaco-editor-container { width: 100%; min-height: 200px; @@ -73,3 +69,8 @@ color: transparent !important; background-color: transparent !important; } + +.edit.githook .monaco-editor-container { + border: 1px solid var(--color-secondary); + height: 70vh; +} |