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 <gcollum@gmail.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
.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;