Skip to content

Commit 68aafc4

Browse files
committed
Better align the part parameter tables to each other
Fixes issue #1066
1 parent 70354c8 commit 68aafc4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

templates/helper.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@
214214
{% endmacro %}
215215

216216
{% macro parameters_table(parameters) %}
217-
<table class="table table-hover table-striped table-sm">
217+
<table class="table table-hover table-striped table-sm" style="table-layout: fixed;">
218218
<thead>
219219
<tr>
220220
<th>{% trans %}specifications.property{% endtrans %}</th>
221-
<th>{% trans %}specifications.symbol{% endtrans %}</th>
221+
<th class="col-sm-1">{% trans %}specifications.symbol{% endtrans %}</th>
222222
<th>{% trans %}specifications.value{% endtrans %}</th>
223223
</tr>
224224
</thead>
@@ -240,4 +240,4 @@
240240
{% else %}
241241
{{ datetime|format_datetime }}
242242
{% endif %}
243-
{% endmacro %}
243+
{% endmacro %}

templates/parts/info/_specifications.html.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
{% for name, parameters in part.groupedParameters %}
55
{% if name is not empty %}<h5 class="mt-1">{{ name }}</h5>{% endif %}
66
{{ helper.parameters_table(parameters) }}
7+
{% if not loop.last %}
8+
<hr class="my-0">
9+
{% endif %}
710
{% endfor %}
811

912
{% if description_params is not empty %}
@@ -14,4 +17,4 @@
1417
{% if comment_params is not empty %}
1518
<h5 class="mt-1">{% trans %}parameters.auto_extracted_from_comment{% endtrans %}</h5>
1619
{{ helper.parameters_table(comment_params) }}
17-
{% endif %}
20+
{% endif %}

0 commit comments

Comments
 (0)