Skip to content

Commit

Permalink
fix(cxl-ui): fix card height to 280px
Browse files Browse the repository at this point in the history
  • Loading branch information
freudFlintstone committed Oct 12, 2023
1 parent 18a9e2b commit 4fa04a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cxl-ui/scss/cxl-base-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ header {
}

.name {
@include mixins.ellipsis-for-lines(3);
@include mixins.ellipsis-for-lines(2);
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-xl);
font-style: normal;
Expand Down
4 changes: 2 additions & 2 deletions packages/cxl-ui/scss/cxl-course-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@use "~@conversionxl/cxl-ui/scss/mixins";

:host {
height: 345px;
height: 280px;
}

:host(:hover) {
Expand Down Expand Up @@ -32,7 +32,7 @@ header {
line-height: var(--lumo-line-height-s);

.content {
@include mixins.ellipsis-for-lines(5);
@include mixins.ellipsis-for-lines(3);
min-height: calc(var(--lumo-line-height-s) * 3); // three standard line-heights

::slotted(p) {
Expand Down
4 changes: 3 additions & 1 deletion packages/cxl-ui/src/components/cxl-course-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export class CXLCourseCardElement extends CXLBaseCardElement {
}

_renderHeaderName() {
return html`<div class="name"><a href=${this.ctaUrl}>${unsafeHTML(this.name)}</a></div>`;
return html`<div class="name" title=${this.name}>
<a href=${this.ctaUrl}>${unsafeHTML(this.name)}</a>
</div>`;
}

render() {
Expand Down

0 comments on commit 4fa04a9

Please sign in to comment.