💄 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;
}
.klipper-noresize {
resize: none;
}
.gap {
justify-content: space-evenly;
}

View File

@ -15,7 +15,7 @@
<!-- /ko -->
<!-- ko if: !$data.hasOwnProperty("options") -->
<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>
</div>
<!-- /ko -->

View File

@ -168,12 +168,14 @@
</span>
</div>
<div class="control-group">
<pre>
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}
</pre>
<label class="control-label">{{ _('Command') }}</label>
<div class="controls" style="margin-left: 82px;">
<div class="row-fluid">
<div class="span12" style="margin-top:2px;">
<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>
</div>
</div>
</div>
</div>
</div>
<!-- Leveling -->