Reputation: 18109
I simple wanted to know how many characters can be viewed without overflow (horizontal scrolling) on any GitHub source view page.
Upvotes: 41
Views: 17818
Reputation: 705
With the new GitHub design, 160 characters are visible for me on Ubuntu - Chrome or Firefox.
1280×1024 users will initially see 158 characters if they have a vertical scrollbar, though by scrolling a little horizontally they can still view 160 characters with up to 4 digits of line numbers.
So basically 160 characters is now fairly safe for desktop users. Mobile users are pretty much a lost cause - 37 characters for devices 360 CSS pixels wide.
Thanks to @aizatto for the link to https://github.com/aizatto/character-length.
Upvotes: 11
Reputation: 8360
On OS X v10.9 (Mavericks):
Upvotes: 21
Reputation: 421
I was just testing this again https://github.com/aizatto/character-length
Testing on macOS Sierra 10.12.6 (16G29):
For both:
When:
117
chars920px
width - Half of MBPr 15"; Usable but requires scrolling: 58 chars
1280px
width - 3/4s of MBPr 5"; 1/2 of 2880px
; Decent: 78 chars
1706px
width - 3/4s of 2560px
: 115 chars
1920px
width - MBPr 15": 120 chars
2560px
width: 164 chars
Upvotes: 10
Reputation: 18109
I attempted to simulate the font-family fall back with the web inspector
On Ubuntu:
Upvotes: 19