Skip to content

Commit 2ed54d1

Browse files
committed
fix bug long media name hides the thumbnail
1 parent 9cf891e commit 2ed54d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 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
`;
@@ -189,6 +189,12 @@ export class UUICardMediaElement extends UUICardElement {
189189
}
190190
#open-part:hover #name {
191191
text-decoration: underline;
192+
display: -webkit-box;
193+
-webkit-line-clamp: 1;
194+
-webkit-box-orient: vertical;
195+
overflow: hidden;
196+
text-overflow: ellipsis;
197+
overflow-wrap: anywhere;
192198
}
193199
194200
:host([image]:not([image=''])) #open-part {

0 commit comments

Comments
 (0)