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:
1 parent
a15d5e4d53
commit
0337814b4d
1 file changed
+9
-7
@@ -73,14 +73,14 @@
|
||||
<label class="fld">Text size
|
||||
<span class="num" id="fontOut">{{ '%.2f'|format(options.font_scale) }}×</span>
|
||||
</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">
|
||||
</div>
|
||||
<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">
|
||||
<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"
|
||||
data-scale="{{ preset }}">{{ text }}</button>
|
||||
{% endfor %}
|
||||
@@ -88,10 +88,12 @@
|
||||
<div class="k mt-1" style="text-transform:none;">
|
||||
The part name is sized first and the image gives way to
|
||||
it, so turning this up shrinks the picture rather than
|
||||
clipping the text. The whole name always prints - it wraps
|
||||
and settles at the largest size that fits, so a long name
|
||||
stops growing before a short one does. Untick
|
||||
<em>Part image</em> for the biggest type of all.
|
||||
clipping the text. The whole name always prints: it wraps
|
||||
and settles at the largest size that fits.
|
||||
<strong>40mm is 40mm</strong> — once the name spans the
|
||||
label, turning the dial further changes nothing, and most
|
||||
names hit that by about 1.4×. Untick <em>Part image</em>
|
||||
to give the text the whole width.
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
|
||||
Reference in new issue
Block a user