clamp-js-main icon indicating copy to clipboard operation
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

Results 7 clamp-js-main issues
Sort by recently updated
recently updated
newest added

Project is a little outdated. Want to clean up code with ESNEXT+.

enhancement

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;...

bug

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

bug

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...

bug

Changing Truncation Characters does not current work in clamp-js. ``` $clamp(paragraph, { clamp: 10, useNativeClamp: false, animate: true truncationChar: '!!!' }); ``` **Version:** 0.11.4

bug