12 points · by hornbaker · 12y ago · 4 comments
This one line of code, added to the head of HN's html, will make the site actually usable on mobile devices:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
Here are the before and after pics of the front page: http://imgur.com/rMYfqwN,mwPDMvB#0 https://news.ycombinator.com/item?id=6253835
https://news.ycombinator.com/item?id=6253403
Trust me, it's worse on most devices. On the Android devices I tested comments often get compressed to two or three characters per line.Would a better solution be to set a viewport width of 800 or 1000 pixels on mobile devices?