Lurker News

Comments (42) 18 threads

Show all comments

Showing thread 6 of 18

wnevets2 replies#
is it just me or is the sidebar broken? Selecting a link on the sidebar after getting to the end of a page doesn't reset scrollY position
smspillaz#
It is! I'll fix it later tonight.
ginnungagap1 reply#
Also maybe it's just my phone but on mobile the sidebar covers the whole website making it impossible to read
smspillaz1 reply#
Oh interesting. What phone are you using? It should enter a mobile-friendly kind of view, but I haven't implemented that on the server side renderer yet.
Jare1 reply#
You may want to consider mobile-friendliness purely client side, using CSS to set up different layouts depending on the resolution - what's typically called Responsive Web Design. Sounds cumbersome, but with just the right couple of design tweaks you may get 90% usability on mobile.
smspillaz#
Actually, I think the issue here now that I think of it is that we do media query detection in on the React side to figure out which components to render. Really, we should just render a single component and have CSS to cover both cases.

Other sites do this, so it should be possible, though it would require me to change the react component that renders the sidebar (I'm using Atlaskit, but that doesn't have support for mobile responsive rendering, sadly).