sindresorhus/refined-github




The issue has been closed
Way to view code blocks with loooong lines better #1515
janpio posted onGitHub
Code blocks with long lines (as they appear in stack traces and similar) are shown with a scroll bar on Github:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
That, combined with the 700px width of the comments makes it very hard to get an overview of the actual content.
It would be awesome if something like a "fullscreen" button would appear in the top right of the code block that e.g. takes the code block out of the comment box and lets it use the full screen width.
Bad mockup:
(Uses
width:1800px; position:relative; left:-480px;
to simulate the effect)
Maybe this could also be dynamic so it just uses the size it needs to the lines be fully displayed.
If the total screen width still is not enough, it would still show the scrollbar of course.