From 6e1eaf595c73ed3604cd4f0009d63755e7409bf3 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Tue, 21 Jun 2022 16:41:06 -0400 Subject: [PATCH] Allow file-editor increase size --- .../templates/panel/server_files.html | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/app/frontend/templates/panel/server_files.html b/app/frontend/templates/panel/server_files.html index 45e02ced..c1e7e197 100644 --- a/app/frontend/templates/panel/server_files.html +++ b/app/frontend/templates/panel/server_files.html @@ -212,7 +212,9 @@ display: none; } - html, body, body > .container-scroller { + html, + body, + body>.container-scroller { overflow: initial; } @@ -221,7 +223,9 @@ position: sticky; } -
+
+
+

@@ -239,11 +243,14 @@ data-handler-name="ace/keyboard/emacs">Emacs +    

+ - + 'save', data['lang']) }} +
@@ -285,7 +292,7 @@ mac: 'Command-S', sender: 'editor|cli' }, - exec: function(env, args, request) { + exec: function (env, args, request) { save() } }); @@ -408,6 +415,7 @@ setFileName(event.target.innerText); editor.session.setValue(json.content); serverFileContent = json.content; + setSaveStatus(true); } }, }); @@ -530,8 +538,10 @@ document.getElementById('save_status').style.color = saved ? '#2fb689' : 'gray'; } ['change', 'undo', 'redo'].forEach(event => editor.on(event, (event) => setSaveStatus(serverFileContent === editor.session.getValue()))) + $('#screen-size').on('click', function (e) { + $('#editor_container').toggleClass(`col-md-6`) - + }); setFileName(); $('#editorParent').toggle(false) // show $('#fileError').toggle(false) // hide @@ -1097,7 +1107,7 @@ if (handlerName == 'null') handlerName = null; editor.setKeyboardHandler(handlerName, () => { if (handlerName == 'ace/keyboard/vim') { - require("ace/keyboard/vim").Vim.defineEx('write', 'w', function() { + require("ace/keyboard/vim").Vim.defineEx('write', 'w', function () { save(); }); } @@ -1117,4 +1127,4 @@ -{% end %} +{% end %} \ No newline at end of file