Skip to content

Commit aec5ef1

Browse files
committed
add ellipsis at the end of name
1 parent 30449e6 commit aec5ef1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/uui-card-user/lib/uui-card-user.element.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class UUICardUserElement extends UUICardElement {
7676
name="avatar"
7777
class="avatar"
7878
@slotchange=${this._avatarSlotChanged}></slot>
79-
<span>${this.name}</span>
79+
<span title="${this.name}">${this.name}</span>
8080
<slot></slot>
8181
</div>`;
8282
}
@@ -163,6 +163,11 @@ export class UUICardUserElement extends UUICardElement {
163163
}
164164
165165
#content > span {
166+
display: -webkit-box;
167+
-webkit-line-clamp: 2;
168+
-webkit-box-orient: vertical;
169+
overflow: hidden;
170+
text-overflow: ellipsis;
166171
vertical-align: center;
167172
margin-top: 3px;
168173
font-weight: 700;

0 commit comments

Comments
 (0)