GitHub Wrapping off? #42298
-
Select Topic AreaIssue BodyFew days ago GitHub has been changed a little bit. I mean "warp code off" coz I mostly use GitHub with my phone chrome but now it feels hard to see code while warp is like that.. please change it back to old 🥲 |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 53 replies
-
This new word-wrap doesn't just affect mobile, but it affects desktop browsers too if you make the window narrow enough. It is objectively bad. I am begging for this to be reverted. Please just let me scroll to the right to see the code in context as-is. |
Beta Was this translation helpful? Give feedback.
-
Horrible change. Please revert to old behavior ASAP! Workaround for desktop for gists (source: https://www.bennadel.com/blog/4373-fixing-github-gists-sudden-case-of-line-wrapping.htm) body .gist .blob-code-inner {
white-space: pre ;
} Edit: For regular repo code (non-gist) pages, the following CSS override fixed it for me: td.blob-code-inner {
white-space: pre;
} This also works: /* No `.gist` */
body .blob-code-inner {
white-space: pre;
} I'm using the following browser extensions to override CSS: |
Beta Was this translation helpful? Give feedback.
-
It's been several days and this still hasn't been fixed. There isn't even an option in settings (web version) to disable this. |
Beta Was this translation helpful? Give feedback.
-
Horrible experience with word wrap |
Beta Was this translation helpful? Give feedback.
-
Would be good if word wrapping was also disabled on some more text areas (for example, test logs on the checks page for commits or pull requests). |
Beta Was this translation helpful? Give feedback.
-
Horrible Change, too annoying for me |
Beta Was this translation helpful? Give feedback.
-
The GitHub app has an option (on iOS at least) under "View Code Options" to enable or disable line wrapping. Would be great if GitHub web had a similar option, or at least default to old behavior of wrapping disabled. FWIW I am using the app now to do mobile code browsing for this reason only. |
Beta Was this translation helpful? Give feedback.
-
Have we got any feedback from GitHub devs? This change needs to be reverted. I worry GitHub aren't getting this feedback. |
Beta Was this translation helpful? Give feedback.
-
Man it's just what Microsoft think is good to do , don't debate we can't do anything 🤧 |
Beta Was this translation helpful? Give feedback.
-
How long we need to stay like this? When would this suffering ends?? 🗿 |
Beta Was this translation helpful? Give feedback.
-
Any update on this? The line wrapping creates an amazingly poor user experience, either reverse it or give us the option to turn it off. 😩 |
Beta Was this translation helpful? Give feedback.
-
Thanks for this - this team have identified the cause and will get to work on getting a fix out for the existing code view. The new code view will have a setting so that wrapping will able to be configured. |
Beta Was this translation helpful? Give feedback.
-
So, finally they fixed this issue after one month As we did much effort to get attention even though Email 🤧 |
Beta Was this translation helpful? Give feedback.
-
I'm confused. A few of you are saying it is fixed but it does not appear fixed. Diffs are still completely unreadable. |
Beta Was this translation helpful? Give feedback.
-
While this is fixed when viewing a file, it's not fixed when viewing a commit, for example: |
Beta Was this translation helpful? Give feedback.
-
This has annoyed me for a while, so I created a bookmarklet: This will unwrap the lines, but the green/red diff backgrounds still stop at the same places
Note: The javascript above should be in the URL field of the bookmark DesktopOn desktop you can add this to your bookmark bar and click it to easily unwrap code. Mobile - AndroidAdd this as a bookmark (if it helps save the current page as a bookmark, then edit that bookmark and add the js as the url).
This will unwrap the code for you on mobile(android) and desktop |
Beta Was this translation helpful? Give feedback.
-
@martinwoodward Can this please be also fixed in Commit diffs ? Thanks in Advance! |
Beta Was this translation helpful? Give feedback.
-
Is this about viewing diffs or about viewing files? |
Beta Was this translation helpful? Give feedback.
-
I made a tiny Chrome extension to fix this since apparently github has no intention to. (It just injects a few lines of css, no javascript.) |
Beta Was this translation helpful? Give feedback.
Thanks for this - this team have identified the cause and will get to work on getting a fix out for the existing code view. The new code view will have a setting so that wrapping will able to be configured.