From adc615bc3295a481559d9bbf0042a941d5698c5a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 16 Nov 2024 10:55:25 -0800 Subject: [PATCH] ui: diagnostics: Fix gap between headings - Wrap each app's results in a
. Style section to maintain gap with previous sections. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- .../templates/diagnostics_app.html | 54 ++++++++-------- .../templates/diagnostics_full.html | 62 ++++++++++--------- static/themes/default/css/main.css | 1 + 3 files changed, 61 insertions(+), 56 deletions(-) diff --git a/plinth/modules/diagnostics/templates/diagnostics_app.html b/plinth/modules/diagnostics/templates/diagnostics_app.html index 2c4cff90e..3b3d6e872 100644 --- a/plinth/modules/diagnostics/templates/diagnostics_app.html +++ b/plinth/modules/diagnostics/templates/diagnostics_app.html @@ -9,33 +9,35 @@

{% trans "Diagnostic Results" %}

-
-

{% blocktrans %}App: {{ app_name }}{% endblocktrans %}

+
+
+

{% blocktrans %}App: {{ app_name }}{% endblocktrans %}

- {% if show_repair %} -
- {% csrf_token %} - -
- {% endif %} -
- - {% if results %} - {% include "diagnostics_results.html" with results=results %} - {% elif exception %} - - {% else %} -

{% trans "This app does not support diagnostics" %}

- {% endif %} + + {% if results %} + {% include "diagnostics_results.html" with results=results %} + {% elif exception %} + + {% else %} +

{% trans "This app does not support diagnostics" %}

+ {% endif %} +
{% endblock %} diff --git a/plinth/modules/diagnostics/templates/diagnostics_full.html b/plinth/modules/diagnostics/templates/diagnostics_full.html index 27d14cb06..dc53e7447 100644 --- a/plinth/modules/diagnostics/templates/diagnostics_full.html +++ b/plinth/modules/diagnostics/templates/diagnostics_full.html @@ -33,38 +33,40 @@ {% if results %}

{% trans "Results" %}

{% for app_id, app_data in results.results.items %} -
-

- {% blocktrans trimmed with app_name=app_data.name %} - App: {{app_name}} - {% endblocktrans %} -

+
+
+

+ {% blocktrans trimmed with app_name=app_data.name %} + App: {{app_name}} + {% endblocktrans %} +

- {% if app_data.show_repair %} -
- {% csrf_token %} - -
- {% endif %} -
- - {% if app_data.diagnosis %} - {% include "diagnostics_results.html" with results=app_data.diagnosis %} - {% elif app_data.exception %} - - {% else %} -

- {% endif %} + + {% if app_data.diagnosis %} + {% include "diagnostics_results.html" with results=app_data.diagnosis %} + {% elif app_data.exception %} + + {% else %} +

+ {% endif %} +
{% endfor %} {% endif %} diff --git a/static/themes/default/css/main.css b/static/themes/default/css/main.css index 25a112a78..5c9ea407a 100644 --- a/static/themes/default/css/main.css +++ b/static/themes/default/css/main.css @@ -73,6 +73,7 @@ /* * Bootstrap override */ +section:not(:first-child), h1:not(:first-child), h2:not(:first-child), h3:not(:first-child),