mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF - 1681] Added username and created initials pipe for user info (#2479)
* [ADF-1681] appling design spec to userinfo component * [ADF-1681] added default pipe to userinfo * [ADF-1681] fixed pipe name and added pipe test * [ADF-168] fixed test for new userinfo feature * [ADF-1681] fixed test * [ADF-1681] fixed style for initials image * [ADF-1681] fixed button for new material design spec * [ADF - 1681] Added documentation for the new values * [ADF - 1681] added some test to check new input attributes
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<data-columns>
|
||||
<data-column key="firstName">
|
||||
<ng-template let-entry="$implicit">
|
||||
<div *ngIf="!entry.row.obj.pictureId" class="people-pic">
|
||||
<div *ngIf="!entry.row.obj.pictureId" class="adf-people-search-people-pic">
|
||||
{{getInitialUserName(entry.row.obj.firstName, entry.row.obj.lastName)}}</div>
|
||||
<div>
|
||||
<img *ngIf="entry.row.obj.pictureId" class="people-img"
|
||||
|
@@ -58,18 +58,6 @@
|
||||
.people-email {
|
||||
opacity: 0.54;
|
||||
}
|
||||
.people-pic {
|
||||
background: mat-color($primary);
|
||||
width: 30px;
|
||||
padding: 10px 5px;
|
||||
border-radius: 100px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
font-size: 18px;
|
||||
text-transform: uppercase;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.people-img {
|
||||
@@ -78,4 +66,17 @@
|
||||
height: 40px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.adf-people-search-people-pic {
|
||||
background: mat-color($primary);
|
||||
width: 30px;
|
||||
padding: 10px 5px;
|
||||
border-radius: 100px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
font-weight: bolder;
|
||||
font-size: 18px;
|
||||
text-transform: uppercase;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user