Re:Lemmy, an open-source federated Reddit alternative, gets ...
by badsectoracula on Monday June 29, 2020 @08:57PM
(#23685370)
By using some mobile specific pseudo-selector? There are pseudo-selectors for printing, there could be selectors for mobile too.
Not sure, i'm not into web development, i just see using the window width as the wrong way. I keep my window down to that size even when i'm using monitors with larger resolutions (1080p or 1440p), it is a bad idea to assume window width == monitor resolution == device type.
How would you differentiate them? At least with the width you can use css media queries so no Javascript is needed.