react-truncate
react-truncate copied to clipboard
React component for truncating multi-line spans and adding an ellipsis.
We have a scenario where the Truncate component will potentially not be visible, and this is leading to `requestAnimationFrame` being called continuously. In https://github.com/One-com/react-truncate/blob/master/src/Truncate.js#L133 on line 133 and following, it...
This should enable multiline truncating of non-typical text that does not contain spaces (eg URLs) and hopefully also resolve #82. New property `breakAll` added (default: `false`). When set to `true`,...
Have you considered a fixed pixel height cutoff/fadeout for this? I'm asking because the resize/sizing detection seems broken for me (it inserts newlines based on where it thinks there is...
See http://keepachangelog.com/en/0.3.0/ - I can help with a PR unless the author has a strong opinion about this.
For example, if I put ellipsis={...}, the text will be truncated like this:  But, it would be nice if functionality is added to enable something like this: 
There is a bug in the width calculation logic that does not take `text-transform` CSS property into account. I have transformed my text to uppercase using this property, and the...
**UPDATE** I realized its the same issue as mentioned here https://github.com/One-com/react-show-more/issues/10 Even if I dont integrate with the `react-show-more` the element starts off fully rendered, then reduces its height to...
I want to know if is possible to remove the position: fixed on ellipsis span so Chrome can render my preview on drag 'n' drop correctly, it works great on...
It can be a option to choose space or letter when split the sentences, for some language, Chinese, for example, it failed because there have no space in it's sentences.
Hello, i have this code for truncate ``` {children.split('\n').map((item, key) => {item}{childrenRows !== (key + 1) ? : '' })} {status === 'edited' ? ( {`${this.props.intl.formatMessage(messages.edited)}`} ) : null} ```...