From 68aafc4d2e4617019a511397fa4e251b8938737e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 19 Oct 2025 15:56:18 +0200 Subject: [PATCH] Better align the part parameter tables to each other Fixes issue #1066 --- templates/helper.twig | 6 +++--- templates/parts/info/_specifications.html.twig | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/helper.twig b/templates/helper.twig index bd1d2aa7..66268a96 100644 --- a/templates/helper.twig +++ b/templates/helper.twig @@ -214,11 +214,11 @@ {% endmacro %} {% macro parameters_table(parameters) %} - +
- + @@ -240,4 +240,4 @@ {% else %} {{ datetime|format_datetime }} {% endif %} -{% endmacro %} \ No newline at end of file +{% endmacro %} diff --git a/templates/parts/info/_specifications.html.twig b/templates/parts/info/_specifications.html.twig index 5860bc71..b885a047 100644 --- a/templates/parts/info/_specifications.html.twig +++ b/templates/parts/info/_specifications.html.twig @@ -4,6 +4,9 @@ {% for name, parameters in part.groupedParameters %} {% if name is not empty %}
{{ name }}
{% endif %} {{ helper.parameters_table(parameters) }} + {% if not loop.last %} +
+ {% endif %} {% endfor %} {% if description_params is not empty %} @@ -14,4 +17,4 @@ {% if comment_params is not empty %}
{% trans %}parameters.auto_extracted_from_comment{% endtrans %}
{{ helper.parameters_table(comment_params) }} -{% endif %} \ No newline at end of file +{% endif %}
{% trans %}specifications.property{% endtrans %}{% trans %}specifications.symbol{% endtrans %}{% trans %}specifications.symbol{% endtrans %} {% trans %}specifications.value{% endtrans %}