From 869d1cec852c3a2427e490b50ea6aa8d02a01e19 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Thu, 11 Sep 2025 13:16:12 +0200 Subject: [PATCH] Make card list layout consistent --- .../service_instance_detail.html | 2 +- .../frontend/organizations/services.html | 44 ++++++++++--------- src/servala/static/css/servala.css | 18 +++----- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/src/servala/frontend/templates/frontend/organizations/service_instance_detail.html b/src/servala/frontend/templates/frontend/organizations/service_instance_detail.html index a12efcf..148ecbb 100644 --- a/src/servala/frontend/templates/frontend/organizations/service_instance_detail.html +++ b/src/servala/frontend/templates/frontend/organizations/service_instance_detail.html @@ -22,7 +22,7 @@ {% endblock page_title_extra %} {% block content %}
-
+
diff --git a/src/servala/frontend/templates/frontend/organizations/services.html b/src/servala/frontend/templates/frontend/organizations/services.html index 2227e86..673f844 100644 --- a/src/servala/frontend/templates/frontend/organizations/services.html +++ b/src/servala/frontend/templates/frontend/organizations/services.html @@ -16,10 +16,10 @@
-
+
{% for service in services %} -
-
+
+
{% if service.logo %} {{ service.category }}
-
- {% if service.description %}

{{ service.description|urlize }}

{% endif %} +
+
+ {% if service.description %}

{{ service.description|urlize }}

{% endif %} +
-
{% empty %}
+

{% translate "No services found." %}

+
{% endfor %} diff --git a/src/servala/static/css/servala.css b/src/servala/static/css/servala.css index 2390b97..4b905a5 100644 --- a/src/servala/static/css/servala.css +++ b/src/servala/static/css/servala.css @@ -176,21 +176,15 @@ a.btn-keycloak { } /* Service cards equal height styling */ +.service-cards-container > * { + display: flex; + align-items: stretch; +} .service-cards-container .card { - height: 100%; - display: flex; - flex-direction: column; + width: 100%; } - -.service-cards-container .card-body { +.service-cards-container .card-content { flex-grow: 1; - display: flex; - flex-direction: column; - justify-content: flex-start; -} - -.service-cards-container .card-footer { - margin-top: auto; } /* CRD Form mandatory field styling */