the 5 is unnecessary, as the width of 6ch does the sizing anyway

This commit is contained in:
2025-08-31 16:48:40 +10:00
parent f4490e937a
commit c21bda8da0

View File

@@ -75,25 +75,25 @@
onChange="UseGrowth({{bt.id}}, 'min')" {% if bt.which_growth == 'min' %}checked{% endif %}> onChange="UseGrowth({{bt.id}}, 'min')" {% if bt.which_growth == 'min' %}checked{% endif %}>
<label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="min-{{bt.id}}" style="width: 6ch;"> <label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="min-{{bt.id}}" style="width: 6ch;">
{% if bt.ann_growth_min> 0 and bt.ann_growth_min < 10 %} &nbsp; {% endif %} {% if bt.ann_growth_min> 0 and bt.ann_growth_min < 10 %} &nbsp; {% endif %}
{{'%5.2f'|format(bt.ann_growth_min)}} {{'%.2f'|format(bt.ann_growth_min)}}
</label> </label>
<input type="radio" class="btn-check" name="growth-{{bt.id}}" id="avg-{{bt.id}}" autocomplete="off" <input type="radio" class="btn-check" name="growth-{{bt.id}}" id="avg-{{bt.id}}" autocomplete="off"
onChange="UseGrowth({{bt.id}}, 'avg')" {% if bt.which_growth == 'avg' %}checked{% endif %}> onChange="UseGrowth({{bt.id}}, 'avg')" {% if bt.which_growth == 'avg' %}checked{% endif %}>
<label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="avg-{{bt.id}}" style="width: 6ch;"> <label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="avg-{{bt.id}}" style="width: 6ch;">
{% if bt.ann_growth_avg < 10 %} &nbsp; {% endif %} {% if bt.ann_growth_avg < 10 %} &nbsp; {% endif %}
{{'%5.2f'|format(bt.ann_growth_avg)}} {{'%.2f'|format(bt.ann_growth_avg)}}
</label> </label>
<input type="radio" class="btn-check" name="growth-{{bt.id}}" id="max-{{bt.id}}" autocomplete="off" <input type="radio" class="btn-check" name="growth-{{bt.id}}" id="max-{{bt.id}}" autocomplete="off"
onChange="UseGrowth({{bt.id}}, 'max')" {% if bt.which_growth == 'max' %}checked{% endif %}> onChange="UseGrowth({{bt.id}}, 'max')" {% if bt.which_growth == 'max' %}checked{% endif %}>
<label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="max-{{bt.id}}" style="width: 6ch;"> <label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="max-{{bt.id}}" style="width: 6ch;">
{% if bt.ann_growth_max < 10 %} &nbsp; {% endif %} {% if bt.ann_growth_max < 10 %} &nbsp; {% endif %}
{{'%5.2f'|format(bt.ann_growth_max)}} {{'%.2f'|format(bt.ann_growth_max)}}
</label> </label>
<input type="radio" class="btn-check" name="growth-{{bt.id}}" id="simple-{{bt.id}}" autocomplete="off" <input type="radio" class="btn-check" name="growth-{{bt.id}}" id="simple-{{bt.id}}" autocomplete="off"
onChange="UseGrowth({{bt.id}}, 'simple')" {% if bt.which_growth == 'simple' %}checked{% endif %}> onChange="UseGrowth({{bt.id}}, 'simple')" {% if bt.which_growth == 'simple' %}checked{% endif %}>
<label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="simple-{{bt.id}}" style="width: 6ch;"> <label class="btn btn-outline-secondary font-monospace d-inline-block text-end" for="simple-{{bt.id}}" style="width: 6ch;">
{% if bt.ann_growth_simple < 10 %} &nbsp; {% endif %} {% if bt.ann_growth_simple < 10 %} &nbsp; {% endif %}
{{'%5.2f'|format(bt.ann_growth_simple)}} {{'%.2f'|format(bt.ann_growth_simple)}}
</label> </label>
</div> </div>
</div> </div>