clamp-js-main
clamp-js-main copied to clipboard
Clamps an HTML element by adding ellipsis to it if the content inside is too long - Originally from both xavi160 & josephschmitt
Project is a little outdated. Want to clean up code with ESNEXT+.
Hey mate, it does work but not with display: inline elements. And I can't remove the display: inline what should I do? `.article-card .card-title { padding: 0rem 0.3rem; line-height: 1.56;...
I've tested only on Version 11.1.2 (13605.3.8) but seems like this is the same issue as it was in the original library. https://github.com/josephschmitt/Clamp.js/issues/45
Please try this codepen example with Firefox https://codepen.io/haoruiqian/pen/pxROZp Here is whole content to be clamped. `A Tried Triedd C B Tried to install MS Office 2010 professional. Asks for Windows...
It is just working on Chrome
Changing Truncation Characters does not current work in clamp-js. ``` $clamp(paragraph, { clamp: 10, useNativeClamp: false, animate: true truncationChar: '!!!' }); ``` **Version:** 0.11.4