Merge pull request #2528 from alphagov/dont-wrap-users

Don’t wrap users onto multiple lines
This commit is contained in:
Chris Hill-Scott
2018-11-22 13:23:02 +00:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -11,6 +11,19 @@ $item-top-padding: $gutter-half;
border-top: 1px solid $border-colour;
position: relative;
h3 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: $secondary-text-colour; // So the ellipsis is grey
.heading-small {
color: $black;
}
}
&:last-child {
border-bottom: 1px solid $border-colour;
}

View File

@@ -33,7 +33,7 @@
<div class="user-list">
{% for user in users %}
<div class="user-list-item">
<h3>
<h3 title="{{ user.email_address }}">
{%- if user.name -%}
<span class="heading-small">{{ user.name }}</span>&ensp;
{%- endif -%}