react-middle-ellipsis icon indicating copy to clipboard operation
react-middle-ellipsis copied to clipboard

Truncate a long string in the middle, instead of the end.

Results 7 react-middle-ellipsis issues
Sort by recently updated
recently updated
newest added

Would love to be able to use this as a `span` element or something instead of a div!

Right now, this component correctly re-ellipses when the browser is resized, using `window.addEventListener("resize", () => { ` under the hood. However, when the surrounding table/etc is resized for *some other...

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...

dependencies

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 Commits 8d4b369 chore(release): 2.8.9 29adfe5 fix: backport...

dependencies

There seems to be an issue where the value inside the ellipsis is not updating when the text is long enough to be truncated. Here's a demo: https://codesandbox.io/s/demo-middle-ellipsis-l8wq1

I want after two lines then begin to add an ellipsis, Like the effect below. But I can't find a better way to realize it. Can you help me? Thanks...

https://github.com/bluepeter/react-middle-ellipsis/blob/88bc58d855fb3b47cee2c54b8d5a3c9a736debb7/src/index.js#L30 This event handler is not removed when the component unmounts