Live data from Hacker News

Please add this 1 line, make HN mobile friendly

news.ycombinator.com

41–50 of 51 posts

Re: Please add this 1 line, make HN mobile friendly

#41
No, you cannot just add that to the top of a web page and have it magically transform into a mobile-friendly page. It may look fine on your particular device, but it will probably be completely hosed on everything else.

The viewport meta tag is essentially a switch which tells mobile browsers to not provide a default page width of 980px, auto zoomed out, but to instead use the device's CSS pixel dimensions, with a zoom you define with initial-scale. Note that this is not physical pixel dimensions. A mobile device's CSS pixels are the physical resolution divided by the device's devicePixelRatio, which currently can range from 1 to 3.

Examples:

On an iPhone 5s, which has a physical resolution of 1136x640 and a devicePixelRatio of 2, a viewport with "width=device-width" will create a page that only has 320px in portrait and 553px in landscape in CSS pixels.

On a HTC One, which has a physical resolution of 1920x1080 (1080p) and a devicePixelRatio of 3, the page will have only 360px in portrait and 640px in landscape.

On tablets, CSS pixel portrait width can range from 600px on a Nexus 7 and Kindle Fire HDX, to 768px on an iPad mini non-retina, to 800px on a Nexus 10 or Kindle Fire HDX 8.9".

Using a viewport meta tag needs to be done in combination with CSS media queries (or a very flexible design that doesn't use px for sizes) to ensure that your web page design responds to the various screen sizes without breaking.

Hope that helps clarify things a bit - trust me, it's a common misunderstanding.

Re: Please add this 1 line, make HN mobile friendly

#42
post #39
post #33

I am not sure what this is meant to address. The worst thing for mobile users is the teeny tiny voting buttons. I believe that votes are important and are not used enough and part of the reason is fear of accidental downvote. The other thing that could be fixed is when someone puts a very long unbroken string in a comment without putting it in a code block. This makes the page very wide, and creates an unpleasant exp…

I have 157 karma and I can't downvote anything. How exactly do you downvote on HN? I've never seen anyone explain that (and I can't really see it in the settings either).

I believe you have to have about 500 karma to downvote comments.

Re: Please add this 1 line, make HN mobile friendly

#43
post #39
post #33

I am not sure what this is meant to address. The worst thing for mobile users is the teeny tiny voting buttons. I believe that votes are important and are not used enough and part of the reason is fear of accidental downvote. The other thing that could be fixed is when someone puts a very long unbroken string in a comment without putting it in a code block. This makes the page very wide, and creates an unpleasant exp…

I have 157 karma and I can't downvote anything. How exactly do you downvote on HN? I've never seen anyone explain that (and I can't really see it in the settings either).

For me it was: Karma = 500, the number might change over time.

Re: Please add this 1 line, make HN mobile friendly

#45
post #36

Earlier quoted context omitted.

Chrome's stock developer tools.

You're right, I never saw it's in there. Sometimes you use a piece of software a lot and yet it's still possible overlook obvious features, I guess :)

Especially since said software auto-updates and adds these features. :) I think the emulation feature is very recent.

Re: Please add this 1 line, make HN mobile friendly

#46
post #36

Earlier quoted context omitted.

Chrome's stock developer tools.

You're right, I never saw it's in there. Sometimes you use a piece of software a lot and yet it's still possible overlook obvious features, I guess :)

Agreed. I just suggested a "What's New in DevTools" feature to Addy.

Re: Please add this 1 line, make HN mobile friendly

#47
post #32

I think we are all looking at the amount of work that would need to go into this, and not looking at the simple fact that maybe PG doesn't want to manage a mobile site. If you don't understand what I mean by "manage", then consider yourself lucky as you have not worked in the digital agency world.

HN's relatively simple, eg it's already a single column layout. Relative widths would do 90% of the job.

Re: Please add this 1 line, make HN mobile friendly

#50
post #47
post #32

I think we are all looking at the amount of work that would need to go into this, and not looking at the simple fact that maybe PG doesn't want to manage a mobile site. If you don't understand what I mean by "manage", then consider yourself lucky as you have not worked in the digital agency world.

HN's relatively simple, eg it's already a single column layout. Relative widths would do 90% of the job.

I would hazard a guess that it's not how simple the site is or the changes would be, it's a matter of managing it.
Post reply on HN