react-truncate icon indicating copy to clipboard operation
react-truncate copied to clipboard

React component for truncating multi-line spans and adding an ellipsis.

Results 54 react-truncate issues
Sort by recently updated
recently updated
newest added

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

bug

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

feature request

See http://keepachangelog.com/en/0.3.0/ - I can help with a PR unless the author has a strong opinion about this.

feature request

For example, if I put ellipsis={...}, the text will be truncated like this: ![image](https://user-images.githubusercontent.com/15192797/32174919-de8b91b8-bd8b-11e7-893e-e7347a42affb.png) But, it would be nice if functionality is added to enable something like this: ![image](https://user-images.githubusercontent.com/15192797/32174981-161171de-bd8c-11e7-9ba4-69e8ef3e92bf.png)

feature request

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

feature request

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

bug

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