[ACA-770] User name - long text ellipsis (#87)

This commit is contained in:
Cilibiu Bogdan
2017-11-27 10:31:49 +02:00
committed by suzanadirla
parent ca8231496a
commit b1b9e04db6
2 changed files with 19 additions and 8 deletions

View File

@@ -1,13 +1,11 @@
<div>
<div title="{{ user?.id }}">
<span>
<span class="current-user__full-name">{{ userName }}</span>
<span
<div class="current-user__full-name">{{ userName }}</div>
<div
class="current-user__avatar am-avatar am-avatar--light"
[matMenuTriggerFor]="userMenu">
{{ userInitials }}
</span>
</span>
</div>
</div>
<mat-menu #userMenu="matMenu" [overlapTrigger]="false">

View File

@@ -33,4 +33,17 @@ $am-avatar-dark-bg: rgba(black, .15);
background: $am-avatar-dark-bg;
}
}
.current-user__full-name {
width: 100px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display:inline-block;
height: 20px;
font-size: 14px;
line-height: 1.43;
letter-spacing: -0.2px;
}
}