Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/uui-card-media/lib/uui-card-media.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class UUICardMediaElement extends UUICardElement {
<!--
TODO: Implement info box when pop-out is ready
-->
<span id="name">${this.name}</span>
<span id="name" title="${this.name}">${this.name}</span>
<small id="detail">${this.detail}<slot name="detail"></slot></small>
</div>
`;
Expand Down Expand Up @@ -191,6 +191,15 @@ export class UUICardMediaElement extends UUICardElement {
text-decoration: underline;
}

#open-part #name {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
overflow-wrap: anywhere;
}

:host([image]:not([image=''])) #open-part {
transition: opacity 0.5s 0.5s;
opacity: 0;
Expand Down
Loading