react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

fix: set wrap-content to true for better code readability

Open ad1992 opened this issue 8 months ago • 2 comments

I have added wrap content to improve the code readability in the playgrounds

https://github.com/user-attachments/assets/eee1cdd1-99eb-48a5-8bf9-7873bc0696e3

ad1992 avatar Apr 27 '25 05:04 ad1992

I think this kinda makes it worse. Maybe ideally we would run this through prettier with a lower number of columns so the code is formatted for the smaller width

rickhanlonii avatar May 16 '25 19:05 rickhanlonii

I think this kinda makes it worse. Maybe ideally we would run this through prettier with a lower number of columns so the code is formatted for the smaller width

@rickhanlonii you mean for smaller width, the formatting might not look good since the content is wrapped ?

How about adding an optional checkbox wrap text which user can check to wrap the content instead? This way it will not be a mandatory change for everyone and still they can use it if they want to.

ad1992 avatar May 18 '25 07:05 ad1992