I truncate my title with ellipsis by limiting it to 3 lines and 150 characters, but I have my last word which is cut. I looked for a solution without finding one that suits me.
In my html:
<span class="w-100 data-set-card-title data-set-card-title-margin">{{card.resource_title}</span>
In my css:
font-size: 20px;
font-weight: 400;
color: $rudi-primary-color;
display: -webkit-box;
margin-bottom: 5px;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
hyphens: auto;
min-height: 1.2em;
Result:
It has long been known that working with readable, meaningful text is distracting, and distracts from focusing on the layout itself. The advantage of the Lor... (last word is Lorem)
what i would like:
It has long been known that working with readable, meaningful text is distracting, and distracts from focusing on the layout itself. The advantage of the... (so we don't cut the word in the middle).
If you have any suggestions for me i'm taker