News for hackers. Stuff that matters.
Re:Show HN: I made a modern web UI for Wikipedia by girvo on Monday December 06, 2021 @07:10PM (#29467561)
Thats a fun one to solve!

   @media (hover: none) and (pointer: coarse) {
That allows the dev to select for devices that do not have a mouse and such rely on touch targets, to increase the sizing. I've been implementing this myself recently in our web application, while still allowing us to change the layout to fit the narrow width!

I'm sure there are some devices it doesn't fit perfectly for though. This stuff is capital-H hard.

Re:Show HN: I made a modern web UI for Wikipedia by Eduard on Monday December 06, 2021 @09:16PM (#29468446)
Re:Show HN: I made a modern web UI for Wikipedia by 3np on Monday December 06, 2021 @08:08PM (#29467988)
> capital-H hard

You mean quote-unquote Hard?

Re:Show HN: I made a modern web UI for Wikipedia by girvo on Monday December 06, 2021 @10:57PM (#29468935)
I wish.

The implementations for these have some... complications, the device sets we now deal with are huge, and making sure there are no idiosyncratic bugs that creep up when using them is legitimately a fair bit of work.