From: Garry Collum Date: Fri, 17 Jun 2022 17:39:36 +0000 (+0000) Subject: LP1979080 Lengthy titles in a carousel should be truncated. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59772306ea8fa248464ee254bde8b13a54536e80;p=evergreen%2Fjoelewis.git LP1979080 Lengthy titles in a carousel should be truncated. Lengthy titles in a carousel push the content that is below the carousel down sometimes resulting in odd displays. This patch truncates lengthy titles to 4 lines ending with an ellipsis. To test. 1. Create a couple of manual carousels and populate them with some bibs that have lengthy titles. 2. Notice that there is odd spacing below the carousels. 3. Apply the patch. 4. The lengthy titles are now truncated and end with an ellipsis. There is now normal spacing below the carousels. Signed-off-by: Garry Collum Signed-off-by: John Amundson Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 index 06c67ecac7..128adb3cf5 100755 --- a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 @@ -3855,6 +3855,15 @@ label[for*=expert_] .carousel-entry { max-width: 150px; } + +/* Truncate titles within carousel to 4 lines */ +.carousel-entry div.titleText { + display: -webkit-box; + -webkit-line-clamp: 4; + -webkit-box-orient: vertical; + overflow: hidden; +} + .carousel-entry-image { width: 100%; height: auto;