💄 rework the macro example

- rewrite the macro example and
fix for textinput height on param_macro_dialog
This commit is contained in:
thelastWallE 2021-12-28 21:32:37 +01:00
parent 357da96ff6
commit 705e26d94b
3 changed files with 13 additions and 7 deletions

View File

@ -136,6 +136,10 @@ ul#klipper-settings {
flex: 3 auto; flex: 3 auto;
} }
.klipper-noresize {
resize: none;
}
.gap { .gap {
justify-content: space-evenly; justify-content: space-evenly;
} }

View File

@ -15,7 +15,7 @@
<!-- /ko --> <!-- /ko -->
<!-- ko if: !$data.hasOwnProperty("options") --> <!-- ko if: !$data.hasOwnProperty("options") -->
<div class="input-append"> <div class="input-append">
<input type="text" class="input-block-level span2" data-bind="value: value"> <input type="text" class="span2" data-bind="value: value">
<span class="add-on" data-bind="text: unit"></span> <span class="add-on" data-bind="text: unit"></span>
</div> </div>
<!-- /ko --> <!-- /ko -->

View File

@ -168,12 +168,14 @@
</span> </span>
</div> </div>
<div class="control-group"> <div class="control-group">
<pre> <label class="control-label">{{ _('Command') }}</label>
PID_CALIBRATE <div class="controls" style="margin-left: 82px;">
HEATER={label:Heater, default:extruder, options:extruder|extruder1} <div class="row-fluid">
TARGET={label:Target Temperature, unit:°C, default:190} <div class="span12" style="margin-top:2px;">
WRITE_FILE={label:Write to File, default:0, options:0|1} <textarea rows="2" class="block klipper-noresize">PID_CALIBRATE HEATER={label:Heater, default:extruder, options:extruder|extruder1} TARGET={label:Target Temperature, unit:°C, default:190} WRITE_FILE={label:Write to File, default:0, options:0|1}</textarea>
</pre> </div>
</div>
</div>
</div> </div>
</div> </div>
<!-- Leveling --> <!-- Leveling -->