From 610ef104f31cd2d745471d269f10f0eac0c03c02 Mon Sep 17 00:00:00 2001 From: Mike Lay Date: Tue, 30 Jan 2024 12:46:32 -0800 Subject: [PATCH] Button alignment in row --- src/coffee/templates/_sut_card.html | 10 +++++----- src/coffee/templates/benchmark.html | 8 ++++---- src/coffee/templates/static/style.css | 6 ++++++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/coffee/templates/_sut_card.html b/src/coffee/templates/_sut_card.html index e069a0c3..3d2468ed 100644 --- a/src/coffee/templates/_sut_card.html +++ b/src/coffee/templates/_sut_card.html @@ -16,20 +16,20 @@

{{ stars_description[benchmark_score.stars() | round | int]["ra
- diff --git a/src/coffee/templates/benchmark.html b/src/coffee/templates/benchmark.html index e11181a5..35b38b41 100644 --- a/src/coffee/templates/benchmark.html +++ b/src/coffee/templates/benchmark.html @@ -33,14 +33,14 @@

AI Systems Evaluated

{% for benchmark_score in grouped_benchmark_scores[benchmark_definition] %} -
+
{{ benchmark_score.sut.name }}
-
+
{{ benchmark_score.stars() | display_stars("sm") }}
@@ -77,4 +77,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/coffee/templates/static/style.css b/src/coffee/templates/static/style.css index 738a3d00..c05c7b07 100644 --- a/src/coffee/templates/static/style.css +++ b/src/coffee/templates/static/style.css @@ -29,10 +29,16 @@ button, .btn { } .star-span-sm { + display: flex; + justify-content: center; + align-items: center; width: 20px; } .star-span-lg { + display: flex; + justify-content: center; + align-items: center; width: 40px; }