vue-line-clamp icon indicating copy to clipboard operation
vue-line-clamp copied to clipboard

"Cross browser" solution for the poorly supported `-webkit-line-clamp` css property regarding to multi-line text truncation

Results 9 vue-line-clamp issues
Sort by recently updated
recently updated
newest added

…wordBreak option and cleaned up fallBackFunc logic

I want to make a 'Show more' button but don't want it to show if the text not clamped. How to make this happen ?

I was happy nesting divs this way (container contains one div that contains other elements) works with Firefox and Chrome, but found out it doesn't in Safari. https://codepen.io/panfanky/pen/dyNLYNJ Another way...

Hi! I just want to ask how to know if the content reaches the maximum line being set. Let say for example I set the maximum to 5 lines and...

I am currently integrating Tailwind.css into an existing website. Tailwind allows you to specify an `important` option in its configuration which makes all of their style declarations include the `!important`...

how to prevent breaking a word when the new line happens?

The component works fine for LTR text, but shows many issues for RTL text, as shown in the examples below. **Example 1: text clamps correctly to 3 lines on LTR...

Checking if there's any interest to port this (very useful) library to vue 3. Basically not much needed to change, we needed to update handler names following the [migration guide](https://v3-migration.vuejs.org/breaking-changes/custom-directives.html#_3-x-syntax)...