🌈 style: editor restyling

-remove checkbox on editor
-change container for buttons
This commit is contained in:
thelastWallE 2021-09-05 22:25:46 +02:00
parent 86096b8da0
commit 26f4b856e1
3 changed files with 6 additions and 17 deletions

View File

@ -238,7 +238,7 @@ div#klipper_editor {
div#klipper_editor.modal { div#klipper_editor.modal {
height: unset !important; height: unset !important;
} }
} }
div#klipper_editor .modal-header { div#klipper_editor .modal-header {
@ -272,7 +272,9 @@ div#klipper_editor .modal-body input[type="checkbox"] {
} }
div#klipper_editor .modal-body .editor-controls { div#klipper_editor .modal-body .editor-controls {
flex: 0 auto 50px; flex: 0 auto;
display: flex;
align-items: center;
} }
div#klipper_editor .flex-end { div#klipper_editor .flex-end {

View File

@ -38,18 +38,9 @@ $(function () {
if (editor) { if (editor) {
editor.session.setValue(config.content); editor.session.setValue(config.content);
self.settings.settings.plugins.klipper.configuration.old_config(config.content);
editor.clearSelection(); editor.clearSelection();
} }
setInterval(function () {
if (editor) {
var modalbodyheight = $('#klipper_editor').height();
//$('#conf_editor').height( modalbodyheight - 135 );
editor.resize();
};
}, 500);
}; };
self.checkSyntax = function () { self.checkSyntax = function () {

View File

@ -24,11 +24,7 @@
<i class="fas fa-spell-check"></i> {{ _('Check Syntax') }} <i class="fas fa-spell-check"></i> {{ _('Check Syntax') }}
</button> </button>
</div> </div>
<span class="pull-right"> <span class="flex-end">
<label class="checkbox">
<input class="inline-checkbox" type="checkbox" data-bind="checked: settings.settings.plugins.klipper.configuration.parse_check">
{{ _('Check parsing on save') }}
</label>
<a href='#' style="text-decoration: none;" data-bind="click: minusFontsize" title="{{ _('Decrease Fontsize') }}"> <a href='#' style="text-decoration: none;" data-bind="click: minusFontsize" title="{{ _('Decrease Fontsize') }}">
<i class="fas fa-search-minus"></i> <i class="fas fa-search-minus"></i>
</a> </a>