From 6f375b0a5c8611378b110b4d010e9bef59dc1683 Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Fri, 23 Sep 2016 15:49:41 +0100 Subject: [PATCH] Added more style improvements --- .../src/userinfo.component.css | 35 +++++- .../src/userinfo.component.html | 105 +++++++----------- .../src/userinfo.component.ts | 12 ++ 3 files changed, 82 insertions(+), 70 deletions(-) diff --git a/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.css b/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.css index dbf99bfc30..93254d00fa 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.css +++ b/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.css @@ -5,20 +5,49 @@ margin-right: 0%; cursor: pointer; border: 1px solid #999999; + vertical-align: middle; } .button-profile { display: inline-block; border: 0px; + vertical-align: middle; } .detail-user-profile-list-mdl{ - margin-right: 100px; + margin-right: 10px; } .user-profile-list-mdl{ max-height: 450px; - max-width: 450px; - min-width: 410px; + min-width: 450px; overflow: auto; } + +.header-profile{ + color: rgb(255,152,0); + margin-left: 10px; +} + +hr.title-start { + border: 0; + height: 1px; + background: #333; + background-image: linear-gradient(to right, #ccc, #333, #ccc); +} + +span.role-label-user{ + font-weight: 400; + line-height: 1; + letter-spacing: 0; + color: rgba(0,0,0,.87); +} + +.custom-role-style{ + font-size: 14px; + color: #9e9e9e; +} + +.truncate-long-names{ + text-overflow: ellipsis; +} diff --git a/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.html b/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.html index 8311349814..74e47e341f 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.html +++ b/ng2-components/ng2-alfresco-userinfo/src/userinfo.component.html @@ -1,6 +1,10 @@
{{ecmUser.firstName || ecmUser.lastName}} - {{bpmUser.firstName || bpmUser.lastName || bpmUser.fullName}} + + {{ formatValue(bpmUser.firstName) || + formatValue(bpmUser.lastName) || + formatValue(bpmUser.fullName) }} +
+ for="user-profile">