From 444786e49c21b01908d09860b7a5e3c29c92538b Mon Sep 17 00:00:00 2001 From: Viacheslav Kukushkin Date: Mon, 5 Aug 2024 18:57:57 +0300 Subject: [PATCH] Improved association panel style --- .../web_ui/templates/benchmark_detail.html | 75 +++++++++++-------- 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/cli/medperf/web_ui/templates/benchmark_detail.html b/cli/medperf/web_ui/templates/benchmark_detail.html index c802b182c..5af088d54 100644 --- a/cli/medperf/web_ui/templates/benchmark_detail.html +++ b/cli/medperf/web_ui/templates/benchmark_detail.html @@ -16,12 +16,12 @@ .detail-container { display: flex; - justify-content: center; + flex-direction: column; + align-items: center; width: 100%; - flex-wrap: nowrap; } - .detail-panel { + .detail-panel, .associations-panel { flex: 1; max-width: 60%; padding-right: 20px; @@ -29,18 +29,27 @@ margin: 0 auto; } - .association-panel { - flex: 1; - padding-left: 20px; - box-sizing: border-box; - } - .association-card { margin-bottom: 20px; } + .associations-panel { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + width: 100%; + margin-top: 20px; + } + + .associations-column { + flex: 1; + min-width: 150px; + max-width: 48%; + box-sizing: border-box; + } + @media (max-width: 992px) { - .detail-panel, .association-panel { + .detail-panel, .associations-panel { max-width: 100%; padding-right: 0; padding-left: 0; @@ -95,31 +104,35 @@
Details
-
-

Associated Datasets

- {% for assoc in datasets_associations %} -
-
-
{{ datasets[assoc.dataset].name }}
-

Approval Status: {{ assoc.approval_status }}

-

Approved At: {{ assoc.approved_at }}

-

Modified At: {{ assoc.modified_at }}

-

Initiated By: {{ assoc.initiated_by }}

+
+
+

Associated Datasets

+ {% for assoc in datasets_associations %} +
+
+
{{ datasets[assoc.dataset].name }}
+

Approval Status: {{ assoc.approval_status }}

+

Approved:

+

Modified:

+

Initiated By: {{ assoc.initiated_by }}

+
+ {% endfor %}
- {% endfor %} -

Associated Models

- {% for assoc in models_associations %} -
-
-
{{ models[assoc.model_mlcube].name }}
-

Approval Status: {{ assoc.approval_status }}

-

Approved At: {{ assoc.approved_at }}

-

Modified At: {{ assoc.modified_at }}

-

Initiated By: {{ assoc.initiated_by }}

+
+

Associated Models

+ {% for assoc in models_associations %} +
+
+
{{ models[assoc.model_mlcube].name }}
+

Approval Status: {{ assoc.approval_status }}

+

Approved:

+

Modified:

+

Initiated By: {{ assoc.initiated_by }}

+
+ {% endfor %}
- {% endfor %}
{% endblock %}