Skip to content

Commit

Permalink
Merge pull request #769 from hlxsites/759-coveo-family-line-clamp-title
Browse files Browse the repository at this point in the history
clipping text line limit to 3 for title only
  • Loading branch information
davenichols-DHLS authored Feb 8, 2024
2 parents 96c6ef2 + d8ede58 commit 7146c39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blocks/category-family/category-family.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ const categoryFamily = `
padding-left: 1rem;
padding-right: 1rem;
}
.title a {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.mailbox-footer{
display: flex;
width: 100%;
Expand Down
6 changes: 6 additions & 0 deletions blocks/product-resources/product-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ const productResources = `
font-size: 1.5rem;
font-weight:600;
}
.title a {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.description {
color: #333;
font-size: .875;
Expand Down

0 comments on commit 7146c39

Please sign in to comment.