TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: This one line of code will make HN usable on mobile devices

12 pointsby hornbakeralmost 11 years ago
Since the HN devs seem to be in dev-mode, I thought I&#x27;d put in one more little request. :)<p>This one line of code, added to the head of HN&#x27;s html, will make the site actually usable on mobile devices:<p><pre><code> &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, user-scalable=yes&quot;&#x2F;&gt; </code></pre> Here are the <i>before</i> and <i>after</i> pics of the front page:<p><pre><code> http:&#x2F;&#x2F;imgur.com&#x2F;rMYfqwN,mwPDMvB#0</code></pre>

2 comments

kogiralmost 11 years ago
Been there, tried that:<p><pre><code> https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6253835 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6253403 </code></pre> Trust me, it&#x27;s worse on most devices. On the Android devices I tested comments often get compressed to two or three characters per line.
评论 #7986637 未加载
评论 #7985908 未加载
hornbakeralmost 11 years ago
Clickable link to before&#x2F;after pics: <a href="http://imgur.com/rMYfqwN,mwPDMvB#0" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;rMYfqwN,mwPDMvB#0</a>