From 6b1d6993f0cb59a6be8e4ad424b3e2dd9d7f225e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Wed, 3 Jun 2015 09:30:28 +0200 Subject: [PATCH] Differentiate between full name and username in css and break long words --- app/modules/profile/profile-bar/profile-bar.jade | 2 +- app/modules/profile/styles/profile-bar.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/modules/profile/profile-bar/profile-bar.jade b/app/modules/profile/profile-bar/profile-bar.jade index 5032eef1..a0c0017d 100644 --- a/app/modules/profile/profile-bar/profile-bar.jade +++ b/app/modules/profile/profile-bar/profile-bar.jade @@ -5,7 +5,7 @@ section.profile-bar // a.button-green // span(translate="USER.PROFILE.FOLLOW") div.profile-data - h1 {{::vm.user.get("full_name_display")}} + h1(ng-class="{'not-full-name': !vm.user.get('full_name')}") {{::vm.user.get("full_name_display")}} h2 {{::vm.stats.get('roles').join(", ")}} // div.location // include ../../../svg/location.svg diff --git a/app/modules/profile/styles/profile-bar.scss b/app/modules/profile/styles/profile-bar.scss index dfa44b0a..2915ebcf 100644 --- a/app/modules/profile/styles/profile-bar.scss +++ b/app/modules/profile/styles/profile-bar.scss @@ -70,6 +70,9 @@ margin-bottom: .5rem; text-transform: none; } + .not-full-name { + word-wrap: break-word; + } h2 { @extend %light; @extend %larger;