Better align the part parameter tables to each other

Fixes issue #1066
This commit is contained in:
Jan Böhmer 2025-10-19 15:56:18 +02:00
parent 70354c8599
commit 68aafc4d2e
2 changed files with 7 additions and 4 deletions

View file

@ -214,11 +214,11 @@
{% endmacro %} {% endmacro %}
{% macro parameters_table(parameters) %} {% macro parameters_table(parameters) %}
<table class="table table-hover table-striped table-sm"> <table class="table table-hover table-striped table-sm" style="table-layout: fixed;">
<thead> <thead>
<tr> <tr>
<th>{% trans %}specifications.property{% endtrans %}</th> <th>{% trans %}specifications.property{% endtrans %}</th>
<th>{% trans %}specifications.symbol{% endtrans %}</th> <th class="col-sm-1">{% trans %}specifications.symbol{% endtrans %}</th>
<th>{% trans %}specifications.value{% endtrans %}</th> <th>{% trans %}specifications.value{% endtrans %}</th>
</tr> </tr>
</thead> </thead>

View file

@ -4,6 +4,9 @@
{% for name, parameters in part.groupedParameters %} {% for name, parameters in part.groupedParameters %}
{% if name is not empty %}<h5 class="mt-1">{{ name }}</h5>{% endif %} {% if name is not empty %}<h5 class="mt-1">{{ name }}</h5>{% endif %}
{{ helper.parameters_table(parameters) }} {{ helper.parameters_table(parameters) }}
{% if not loop.last %}
<hr class="my-0">
{% endif %}
{% endfor %} {% endfor %}
{% if description_params is not empty %} {% if description_params is not empty %}