From 066ab7e3bea8c31580772604d54fae712c08db60 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Sat, 9 Sep 2023 02:54:17 -0400 Subject: [PATCH] ui: move playbook labels onto their own row This reduces the waste of whitespace from the labels wrapping. --- ara/ui/static/css/ara.css | 5 +-- .../templates/partials/tables/playbooks.html | 34 +++++++++---------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ara/ui/static/css/ara.css b/ara/ui/static/css/ara.css index 2125226a..8f99d2ac 100644 --- a/ara/ui/static/css/ara.css +++ b/ara/ui/static/css/ara.css @@ -35,8 +35,8 @@ /* Size playbook labels and add padding/margin */ .ara-label { - font-size: 90% !important; - padding: 0.10rem 0.25rem !important; + font-size: 95% !important; + padding: 0.05rem 0.25rem !important; margin-bottom: 3px; } @@ -76,6 +76,7 @@ .report-column { width: 60px; text-align: center; + vertical-align: middle; } .short-status-column { diff --git a/ara/ui/templates/partials/tables/playbooks.html b/ara/ui/templates/partials/tables/playbooks.html index 09c1f2aa..b15f84f6 100644 --- a/ara/ui/templates/partials/tables/playbooks.html +++ b/ara/ui/templates/partials/tables/playbooks.html @@ -4,7 +4,7 @@ {% load static_url %}
- +
@@ -23,16 +23,15 @@ - {% for playbook in playbooks %} - @@ -139,15 +138,16 @@

Playbook {{ playbook.items.results }} - -

+ + {% endfor %}
ReportHosts Tasks ResultsLabels
+ {% url 'ui:playbook' playbook.id as playbook_url %} - + @@ -85,15 +84,15 @@

Playbook {% if not static_generation %} {% if playbook.name is not None %} - {{ playbook.name | truncatechars:50 }} + {{ playbook.name | truncatechars:65 }} {% else %} - {{ playbook.path | truncatepath:50 }} + {{ playbook.path | truncatepath:65 }} {% endif %} {% else %} {% if playbook.name is not None %} - {{ playbook.name | truncatechars:50 }} + {{ playbook.name | truncatechars:65 }} {% else %} - {{ playbook.path | truncatepath:50 }} + {{ playbook.path | truncatepath:65 }} {% endif %} {% endif %}

- {% for label in playbook.labels %} - {% if not static_generation %} - {{ label.name }} - {% else %} - {{ label.name }} - {% endif %} - {% endfor %} +
+ {% for label in playbook.labels %} + {% if not static_generation %} + {{ label.name }} + {% else %} + {{ label.name }} + {% endif %} + {% endfor %}