react-diff-viewer-continued icon indicating copy to clipboard operation
react-diff-viewer-continued copied to clipboard

Question: is it possible to limit lines?

Open orchestr7 opened this issue 2 years ago • 2 comments

We have very long lines without breaks and it causes the render to slide: image

Is there any chance to limit the box and add word and lines wrap? Example: https://saveourtool.com/vuln/collection/GHSA-xh5m-8qqp-c5x7 (tab: Changes)

orchestr7 avatar Oct 19 '23 12:10 orchestr7

It looks like it is a bug happening when you press on expand:

https://github.com/Aeolun/react-diff-viewer-continued/assets/58667063/8e456e0e-be4e-4ffb-924a-3363bc07e756

orchestr7 avatar Oct 19 '23 13:10 orchestr7

You could try v4, which might solve the jumping but I don’t think it’d ultimately solve your issue because right now it doesn’t support line wrap at all yet.

Aeolun avatar Oct 19 '23 23:10 Aeolun