From d1769566fca835357af0f5669f3a1179832f5b77 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Sun, 5 Jan 2025 07:47:08 +0000 Subject: [PATCH] Add indent --- src/aiidalab_qe/app/result/components/summary/schema.json | 2 ++ src/aiidalab_qe/app/static/templates/workflow_summary.jinja | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/aiidalab_qe/app/result/components/summary/schema.json b/src/aiidalab_qe/app/result/components/summary/schema.json index b1bf03c11..7eef8832c 100644 --- a/src/aiidalab_qe/app/result/components/summary/schema.json +++ b/src/aiidalab_qe/app/result/components/summary/schema.json @@ -122,11 +122,13 @@ "degauss": { "title": "Smearing width (degauss)", "type": "text", + "indent": 1, "description": "The smearing width used for the calculation" }, "smearing": { "title": "Smearing type", "type": "text", + "indent": 1, "description": "The smearing type used for the calculation" }, "scf_kpoints_distance": { diff --git a/src/aiidalab_qe/app/static/templates/workflow_summary.jinja b/src/aiidalab_qe/app/static/templates/workflow_summary.jinja index f607d4524..81e56978a 100644 --- a/src/aiidalab_qe/app/static/templates/workflow_summary.jinja +++ b/src/aiidalab_qe/app/static/templates/workflow_summary.jinja @@ -6,7 +6,10 @@ {% for key, value in report[section].items() %} - + {% set indent = (schema[key].indent | default(0)) * 16 %} +
{{ schema[key].title }} + {{ schema[key].title }} + {% if schema[key].type == "link" %}