From da516554c241f2a2949048c7e149de21ffd172f1 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 31 Oct 2019 15:48:51 -0400 Subject: [PATCH] Add env role to the app members table and truncate long env names --- styles/components/_portfolio_layout.scss | 33 +++++++++++++++++-- templates/applications/fragments/members.html | 15 +++++++-- 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/styles/components/_portfolio_layout.scss b/styles/components/_portfolio_layout.scss index 2b4f4358..2102cc2e 100644 --- a/styles/components/_portfolio_layout.scss +++ b/styles/components/_portfolio_layout.scss @@ -149,6 +149,11 @@ .member-list { .responsive-table-wrapper { margin-bottom: 0; + + table.atat-table { + table-layout: fixed; + width: 100%; + } } input.usa-button.usa-button-primary { @@ -207,9 +212,31 @@ margin: 4rem; } - .member-list__subhead { - font-weight: $font-normal; - font-size: $base-font-size; + .env_role { + width: 50%; + } + + .form-col--two-thirds { + width: 66.66%; + flex-basis: unset; + } + + .row { + display: flex; + padding-right: $gap; + + .env-role__environment { + min-width: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + font-weight: $font-bold; + } + + .env-role__role { + white-space: nowrap; + display: inline-block; + } } } diff --git a/templates/applications/fragments/members.html b/templates/applications/fragments/members.html index a00b99c0..496469d0 100644 --- a/templates/applications/fragments/members.html +++ b/templates/applications/fragments/members.html @@ -95,7 +95,7 @@ Name Application Permissions - Environment Access + Environment Access @@ -116,14 +116,23 @@ {% for perm, value in member.permission_sets.items() %} - {{ ("portfolios.applications.members.{}.{}".format(perm, value)) | translate }}
+
+ {{ ("portfolios.applications.members.{}.{}".format(perm, value)) | translate }} +
{% endfor %}
{% for env in member.environment_roles %} - {{ env.environment_name }}
+
+ + {{ env.environment_name }} + + + : {{ env.role }} + +
{% endfor %}