bugfix of buttonenable and some styling

This commit is contained in:
thelastWallE 2021-02-11 23:34:25 +01:00
parent b1a380a4bf
commit 782b9aa91b
2 changed files with 15 additions and 5 deletions

View File

@ -3,6 +3,7 @@
overflow-y: scroll; overflow-y: scroll;
height: 400px; height: 400px;
border: 1px solid #eee; border: 1px solid #eee;
width: 100%;
} }
.plugin-klipper-log .log-item { .plugin-klipper-log .log-item {
@ -34,6 +35,7 @@
.clear-btn { .clear-btn {
margin-top: 6px; margin-top: 6px;
margin-bottom: 6px;
} }
#level .add-on { #level .add-on {
@ -65,14 +67,22 @@ ul#klipper-settings {
#tab_plugin_klipper_main .span8 { #tab_plugin_klipper_main .span8 {
min-width: 50%; min-width: 50%;
width: auto; width: unset;
flex-grow: 6; flex-grow: 8;
float: left;
box-sizing: border-box;
}
#tab_plugin_klipper_main .span8 label {
float: left;
} }
#tab_plugin_klipper_main .span4 { #tab_plugin_klipper_main .span4 {
flex-grow: 1; flex-grow: 0;
flex-shrink: 1; flex-shrink: 1;
width: auto; max-width: 13%;
float: left;
box-sizing: border-box;
} }
#settings_plugin_klipper { #settings_plugin_klipper {

View File

@ -134,7 +134,7 @@ $(function () {
}; };
self.isActive = function () { self.isActive = function () {
return self.connectionState.isOperational() && hasRight("CONFIG"); return self.connectionState.isOperational() && this.hasRight("CONFIG");
}; };
self.hasRight = function (right_role, type) { self.hasRight = function (right_role, type) {