Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text not visible for too long content #179

Open
arshad-turtle opened this issue Feb 27, 2023 · 6 comments
Open

Text not visible for too long content #179

arshad-turtle opened this issue Feb 27, 2023 · 6 comments

Comments

@arshad-turtle
Copy link

I am uploading a zip file and wants to show unzip file text content in the front end
the file unzipping api is working fine,And react diff viewer is working fine for normal files,but assoon as i upload large file which content big texts its only returning a title name on both side
Screenshot 2023-02-27 at 3 03 20 PM

@ruiaraujo012
Copy link

I'm facing a similar issue.

The scroll cuts some information, which only happens with ReactDiffViewer.

image

@DaanvanHulsen
Copy link

@ruiaraujo012 did you end up fixing this issue? Would love to know how!

@ruiaraujo012
Copy link

ruiaraujo012 commented Jun 6, 2023

@DaanvanHulsen Unfortunately, I didn't

@DaanvanHulsen
Copy link

@ruiaraujo012 Got it! Add this code to your style:

line: { wordBreak: 'break-word', },

@ruiaraujo012
Copy link

Thank you. I really appreciate it

@rmannibucau
Copy link

rmannibucau commented Dec 5, 2023

guess this is worth integrating by default?

side note can be worth mentionning line: { wordBreak: 'break-word', height: 'auto' }, can be needed too (plus min-height in some cases) like in split view otherwise it stays unreadable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants