react-json-view
react-json-view copied to clipboard
JsonView is acting really weird
Hello, I just came across your library and its really nice. I have a problem with the library when I try to load it in my app. As shown in the video it doesn't work as expected. Can you please let me know what I should do or what is causing this?? Is it CSS related by any chance?
This is how it shows up on my app!

This is how I want it to show up!

Thank you
@siyavash4812 You probably put this into some code sandbox. This is what happened to me earlier today. Actually, in the code sandbox, there is a center alignment to all contents by default, which takes effect on the JSON editor as well. All you need to do is adjust the alignment in the CSS.
Hey @siyavash4812 , did you solve this? I'm having the same problem here.
Same Issue
Yes I agree with @MarkShulhin . Just align the text in css. @jjwallace
Same, just used text-align: left; css property and it worked. Thanks!