react-diff-view icon indicating copy to clipboard operation
react-diff-view copied to clipboard

Comment on left side on split view shows on the whole length

Open alex-semenyuk opened this issue 5 months ago • 4 comments

Comment on left side on split view shows on the whole length - include right side. Is it possible that it shows only on length left side for which it was left? @otakustay

alex-semenyuk avatar Feb 07 '24 20:02 alex-semenyuk

I don't quite understand this, could you attach a screenshot to explain it in detail?

otakustay avatar Feb 08 '24 11:02 otakustay

@otakustay Yes, we can see that on README's overview. I don't want that comment, which we leave for left side, is continued on right side (crossed on the screen). split-view

alex-semenyuk avatar Feb 08 '24 12:02 alex-semenyuk

This is not possible natively since a unchanged (normal) line is designed to render widget across both sides, however in your Widget component, you may try to wrap your content in a div with {width: '50%'} style on a normal change, it may work, I can try to make such demo later

otakustay avatar Feb 08 '24 14:02 otakustay

@otakustay Thanks for answering. Yes, please provide an example when you have time

alex-semenyuk avatar Feb 09 '24 11:02 alex-semenyuk