Earlier quoted context omitted.
Yes, and webdevs have been trying for over 10 years now to figure out how to get this right. Has no one just stopped to consider having a browser send a `prefersMobileView` or `viewport:phone` or anything like that? I can remember back a few years ago, an iPhone 6+, turned sideways could get a desktop view on some sites... simply because it met the requirements set by the author. Now, the author's assumptions were wr…
IMO the best solution is to just have natural breakpoints (i.e. when a part of the design of the given page would cease to work, add a breakpoint to change the format of that component, rather than at predefined points) and then for logged in users have an option to request the desktop design, which you can do by simply setting a viewport to 1000px width and leaving everything else unchanged what would be really nice…
Just because I have a vertical screen doesn’t mean I’m on a phone
321–330 of 399 posts
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#322I could see how someone might put in a quick, unideal hack and do a scaled to fit. I'm curious how often people are seeing this as I don't have a vertical monitor setup anymore.
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#323The reason I consider this a true edgecase is that he combines a vertical orientation of the monitor with scaling. That is just bound to cause problems. Had the width been 1080px most websites would at least have given him the tablet layout, which would be more usable on a desktop monitor.
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#324Earlier quoted context omitted.
Why don't browsers tell the server whether the user has a touch screen? This seems like a perfectly reasonable thing that the website should know before delivering the page, and users who are hyper privacy focused could toggle a setting to not send this info.
A touch screen has @media (pointer: coarse) CSS can be used to style elements accordingly: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/poin... No need to get the server involved.
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#325Earlier quoted context omitted.
Copying from elsewhere in this thread: `@media (pointer: coarse)`
Don't think that's quite right either. Pointer coarse would just refer to the device used for pointing. Using a tablet with a mouse would be "pointer: fine" but it's still a tablet. As always, the issue isn't black and white. There is no solution that always works, because it depends on what you're targeting. If you want to scale elements to be easier clickable for people who might devices where it's harder to click/…
I would want to check this empirically before accepting it as gospel. At least on the iPad, a mouse pointer is kinda halfway between a finger and a classic mouse pointer, and having to guess, my guess is that Safari doesn't change the designation just because there's a mouse plugged in.
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#326Earlier quoted context omitted.
You mean 𝗹𝗶𝗸𝗲 𝘁𝗵𝗶𝘀?
Now try a screen reader (on a mac, Edit > Speech > Start Speaking will do nicely). Spoiler: You mean mathematical sans-serif bold small l, mathematical sans-serif bold small i, mathematical sans-serif bold small k, mathematical sans-serif bold small e, mathematical sans-serif bold small t, mathematical sans-serif bold small h, mathematical sans-serif bold small i, mathematical sans-serif bold small s?
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#327Earlier quoted context omitted.
Sure. Now let's say you're shopping for a brand new rug for your living room. Are you going to buy it from a site the looks like HackerNews? If so, I'd venture to say you're in the minority. A used rug from Craigslist, perhaps, but a brand new rug costing hundreds, you're going to want a site that looks VERY professional.
So you’re saying “professional == follows modern design fads” as a proxy for how legitimate a site is. And maybe you’re right that is a somewhat useful (if unreliable) proxy for legitimateness, but it’s not an argument that it’s good design.
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#328Earlier quoted context omitted.
At least it allows for pinch zooming, which is (IMO, of course) an acceptable compromise. Maintain readability for the text while still making it possible to hit the UI elements.
Any site allows pinch zooming if you use Firefox and toggle a setting. That isn't an acceptable compromise, you end up doing a lot of horizontal scaling to read block quotes and zooming to touch UI elements. It's not the worst, but it is trivial to do better.
what block quotes?
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#329Earlier quoted context omitted.
> The author's proposed solution is for sites to use DPI instead This is untenable as well. You'll end up with microscopic websites on high DPI phone screens.
What I use is @media (pointer: coarse) and (hover: none) { If you have a mouse plugged in, you get the desktop design.
@media (min-aspect-ratio: 1/1) /* wide */
@media (max-aspect-ratio: 1/1) /* tall */
@media (aspect-ratio: 1/1) /* square */
Re: Just because I have a vertical screen doesn’t mean I’m on a phone
#330Earlier quoted context omitted.
I think primarily that's for constraining a div's aspect-ratio. Like making sure you have a div that's always 16:9 to hold a video player. I'd be interested in hearing other use cases, though.
No, it's not.