Skip to content

Commit 2b80ed8

Browse files
authored
Merge branch 'v1/contrib' into v1/fix-bug/username-overflow
2 parents b9744a9 + 77231cd commit 2b80ed8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class UUICardMediaElement extends UUICardElement {
106106
<!--
107107
TODO: Implement info box when pop-out is ready
108108
-->
109-
<span id="name">${this.name}</span>
109+
<span id="name" title="${this.name}">${this.name}</span>
110110
<small id="detail">${this.detail}<slot name="detail"></slot></small>
111111
</div>
112112
`;
@@ -191,6 +191,15 @@ export class UUICardMediaElement extends UUICardElement {
191191
text-decoration: underline;
192192
}
193193
194+
#open-part #name {
195+
display: -webkit-box;
196+
-webkit-line-clamp: 1;
197+
-webkit-box-orient: vertical;
198+
overflow: hidden;
199+
text-overflow: ellipsis;
200+
overflow-wrap: anywhere;
201+
}
202+
194203
:host([image]:not([image=''])) #open-part {
195204
transition: opacity 0.5s 0.5s;
196205
opacity: 0;

packages/uui-icon/lib/uui-icon.element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export class UUIIconElement extends LitElement {
139139
static styles = [
140140
css`
141141
:host {
142+
vertical-align: text-bottom;
142143
display: inline-flex;
143144
align-items: center;
144145
justify-content: center;

0 commit comments

Comments
 (0)