Stop the text size dial promising what 40mm cannot deliver

Measured it: on a 40mm label most names already span the width by about
1.4x, and everything above that did nothing at all. Cap the control at 2x
with Normal / Large / Largest, and say plainly what the limit is.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vunz4VLxAYDBnU5tLciLDC
This commit is contained in:
jessikittyandClaude Opus 5 committed 2026-10-13 11:05:51 +11:00
1 parent a15d5e4d53
commit 0337814b4d
1 file changed
+9 -7
+9 -7
View File
@@ -73,14 +73,14 @@
<label class="fld">Text size <label class="fld">Text size
<span class="num" id="fontOut">{{ '%.2f'|format(options.font_scale) }}&times;</span> <span class="num" id="fontOut">{{ '%.2f'|format(options.font_scale) }}&times;</span>
</label> </label>
<input type="number" name="font_scale" step="0.05" min="0.5" max="3" <input type="number" name="font_scale" step="0.05" min="0.5" max="2"
class="w-100" value="{{ options.font_scale }}" id="fontNum"> class="w-100" value="{{ options.font_scale }}" id="fontNum">
</div> </div>
<div class="col-12"> <div class="col-12">
<input type="range" min="0.5" max="3" step="0.05" class="w-100" <input type="range" min="0.5" max="2" step="0.05" class="w-100"
value="{{ options.font_scale }}" id="fontRange"> value="{{ options.font_scale }}" id="fontRange">
<div class="d-flex gap-1 flex-wrap"> <div class="d-flex gap-1 flex-wrap">
{% for preset, text in [(1.0, 'Normal'), (1.5, 'Large'), (2.0, 'Huge'), (3.0, 'Max')] %} {% for preset, text in [(1.0, 'Normal'), (1.4, 'Large'), (2.0, 'Largest')] %}
<button type="button" class="bl-btn bl-btn-sm font-preset" <button type="button" class="bl-btn bl-btn-sm font-preset"
data-scale="{{ preset }}">{{ text }}</button> data-scale="{{ preset }}">{{ text }}</button>
{% endfor %} {% endfor %}
@@ -88,10 +88,12 @@
<div class="k mt-1" style="text-transform:none;"> <div class="k mt-1" style="text-transform:none;">
The part name is sized first and the image gives way to The part name is sized first and the image gives way to
it, so turning this up shrinks the picture rather than it, so turning this up shrinks the picture rather than
clipping the text. The whole name always prints - it wraps clipping the text. The whole name always prints: it wraps
and settles at the largest size that fits, so a long name and settles at the largest size that fits.
stops growing before a short one does. Untick <strong>40mm is 40mm</strong> &mdash; once the name spans the
<em>Part image</em> for the biggest type of all. label, turning the dial further changes nothing, and most
names hit that by about 1.4&times;. Untick <em>Part image</em>
to give the text the whole width.
</div> </div>
</div> </div>
<div class="col-6"> <div class="col-6">