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