Re:Downgrade User Agent Client Hints to 'harmful'
by hypertele-Xii on Tuesday July 13, 2021 @03:08PM
(#27824905)
Why would you need different templates for mobile/desktop? CSS is quite capable responding to any screen orientation.
Re:Downgrade User Agent Client Hints to 'harmful'
by grishka on Tuesday July 13, 2021 @05:42PM
(#27826661)
Yes it is. Except you can't use the same markup for both because the input devices, and thus interaction paradigms, are so radically different. Mice are precise and capable of hovering over things, so it makes sense to pack everything densely and add various tooltips and popup menus. Touchscreens are imprecise and don't have anything resembling hovering, so UI elements must be large, with enough padding around them, and with menus appearing on click.
Re:Downgrade User Agent Client Hints to 'harmful'
by WorldMaker on Wednesday July 14, 2021 @01:15PM
(#27835530)
Between CSS Flexbox and CSS Grid there shouldn't any reasons today that you can't handle 100% of those differences with the same markup and media stylesheets. (There's also obviously JS if you really must contort the HTML DOM to get what you want.)
Re:Downgrade User Agent Client Hints to 'harmful'
by jenscow on Tuesday July 13, 2021 @03:36PM
(#27825256)
You're not wrong. However, there are times when CSS isn't enough. For example:
- The Mobile vs Desktop design differences are too great.
- The site was originally created without considering mobile, and retrofitting mobile support is unfeasible.
Re:Downgrade User Agent Client Hints to 'harmful'
by hypertele-Xii on Tuesday July 13, 2021 @04:07PM
(#27825641)
Can you expand on the design differences?
However it is nice that there's now a separate header that gives a yes or no answer on whether it's a mobile device.