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

Sometimes the code by itself cuts off single line into an ellipsis

Open prrenish opened this issue 3 years ago • 0 comments

Screenshot from 2022-07-21 11-55-18

I have tried all the options that are available except break-all because that will cut of words for me. This occurs not on a regular interval but on dynamic updated so is there any way to fix this currently have tried everything but still the same.

<ResponsiveEllipsis
          component='article'
          className='ellipsis-text'
          text={text}
          maxLine={2}
          trimRight={false}
          onReflow={handleReflow}
          basedOn={"words"}
          ellipsis='...Read More'
          style={{ whiteSpace: "pre-wrap", wordBreak: "break-word" }}
      /> 

Thanks in advance

prrenish avatar Jul 21 '22 06:07 prrenish