editor: more tweaks

This commit is contained in:
jean-emmanuel 2021-12-13 23:52:01 +01:00
parent 99dc837cfd
commit cd50f76cb4
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,7 @@ for (var name of ['script', 'draw', 'touch']) {
editors[name] = ace.edit('editor-' + name)
editors[name].getSession().setMode('ace/mode/javascript')
editors[name].setOption('autoScrollEditorIntoView', true)
editors[name].setOption('maxLines', 80)
editors[name].setOption('maxLines', 40)
editors[name].setOption('blockScrolling', Infinity)
editors[name].commands.bindKeys({'ctrl-l':null, 'ctrl-f': null,'cmd-l':null, 'cmd-f': null})
editors[name].renderer.setScrollMargin(4, 4, 0, 4)

View file

@ -134,7 +134,9 @@ osc-inspector-field .ace_editor {
background-color: rgba(76, 87, 103, .19)
}
.ace_marker-layer .ace_selected-word {
border: 1rem solid #3d4350
border: none;
border-bottom: 1rem solid rgba(white, 0.2);//1rem solid #3d4350;
background: none;
}
.ace_fold {
background-color: #61afef;