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

The following test fails with 0 value. Can you please help and mention, what am I doing wrong? ``` import React from "react"; import { mount } from "enzyme"; import...

Hey there, Thanks for the library, it's great. However, I have this issue when testing the component with jest and enzyme. When I use `width` prop the tests fail saying:...

Hi, I don't know if I am implementing the component in a wrong way or if it is a bug. I'm trying to truncate plain text in a gatsby project:...

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.22 to 0.7.28. Commits 1d3c98a Revert breaking fix #279 and release as 0.7.28 535f11b Delete redundant code 642c039 Fix #492 LG TV WebOS detection 3edacdd Merge branch...

dependencies

We're currently facing an issue. We have a responsive tile layout implemented with flexbox. Upon "violent" window resizes, such as maximize, there is a desync between flex wrapping and truncation....

bug

When the text to be truncated is part of a component who's display property is set to none, on re-appearing the length of the last line changes, often causing a...

When container is responsive and it's size depends on window size and we specify truncate text with lines and width params we have wrong lines calculation (having more or less...

I have a component like this: ``` export const Chip = (props: ChipProps) => { const { className, color, text, onDeleteClick, onClick } = props; const [isTruncated, setIsTruncated] = useState(false);...

Hi, im working with iframe in tabs in my app. Every iframe is a separately react app. So I have a problem that when I leave from my tab with...