From 8b84bf27e3ec47593a56a5bb2d997d25b0b9e8be Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 22 Nov 2018 10:41:47 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20wrap=20users=20onto=20multiple?= =?UTF-8?q?=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It looks cleaner to truncate instead. You can always see the full email address by clicking into ‘edit’. --- app/assets/stylesheets/views/users.scss | 13 +++++++++++++ app/templates/views/manage-users.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/views/users.scss b/app/assets/stylesheets/views/users.scss index 4854de20f..efbf79c31 100644 --- a/app/assets/stylesheets/views/users.scss +++ b/app/assets/stylesheets/views/users.scss @@ -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; } diff --git a/app/templates/views/manage-users.html b/app/templates/views/manage-users.html index 577abcc64..5de9f9e95 100644 --- a/app/templates/views/manage-users.html +++ b/app/templates/views/manage-users.html @@ -33,7 +33,7 @@
{% for user in users %}
-

+

{%- if user.name -%} {{ user.name }}  {%- endif -%}