-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidepane missing scrollbar #52
Comments
Hi @lenhart That's a tricky issue. If the Table Of Contents on the right is set to be sticky but it is too long, it gets cut on small screens. You need to scroll down to the bottom of the page for accessing the last sections, which makes little sense. This is the case you are showing in your screenshot. On the contrary, if the ToC is not sticky but set to scroll along with the text, then you lose it as soon as you start scrolling down and it becomes useless for intra-page navigation. In long pages, I find it useful to know if you need to scroll up or down to reach a given section. Unfortunately, adding a scrollbar to the ToC without breaking things appears to be challenging. I'm not very skilled in any of the programming languages involved, but it seems that it could be done with some CSS. I need to look more into it. Maybe the non-sticky ToC would be a better choice, since I guess the usual behavior is to go straight to the documentation of the implementation you are interested in, instead of wandering up and down the page. The ToC is, by large, the "less responsive" feature of the website, and I find it difficult to make it behave well on screens of all sizes. Any suggestion? BTW, all your feedback is very welcome! |
Hi @carlesfernandez, So, no unfortunately no good suggestions and I would say this is a low priority issue. Don't know if it is realistic to wait for it to be solved in upstream mmistakes. I dropped a comment there if the commenter who said it is trivial could share a code snippet.. Maybe something comes out of it :-) |
CC @lenhart On my website it really is just 5 lines or so of CSS to get a working prototype, but it's not thoroughly tested and from time to time I have added patches to make it look elegant on different devices, screens, browsers etc. The top few lines in my You can see a preview of the scrollable sticky ToC on this article (Wayback Machine) of my blog. Zoom in a bit if you're on a larger screen as the scroll effect isn't enabled until the ToC is too long to fit in one screen. Have my word here. I'd be glad to share the above code* under CC BY 4.0 license (the whole repo is CC BY-SA 4.0 unless otherwise noted) if I get my credit in Git commit message (e.g. * the whole file |
…see #52) Co-authored-by: iBug <git@ibugone.com>
Dear @iBug thank you so much for spending time on this, and for your kind contribution. Your solution works well and looks nice in all browsers I've tried (Chrome, Safari, Opera, Firefox). Please let me know if your work is properly credited in commit 91e2cf2 BTW, iBug-source is a very interesting web! Dear @lenhart https://gnss-sdr.org/docs/sp-blocks/signal-source/ Thank you guys for your help! |
@carlesfernandez Yes the crediting is OK. Glad to know that you like my code and website 😃 BTW, I only test web stuff in Chrome and Firefox which I suppose cover the majority of (my) target users. Good job for also checking Opera and Safari. Plus I don't think Firefox supports
|
Ups! My mistake. Fixed in order to avoid confusion. |
I left another comment here. Would you mind taking a look? |
Hi @iBug, thanks for your comment, it has been fixed. I'm closing this issue since it seems fixed. Still with some tolerable annoyance, though. |
Hi again,
(I hope I am not becoming unpopular here by opening issues - if you want feedback in any other way or not at all, please just say so :-))
The right scroll pane is not scrollable, resulting in chapters lower down not being selectable on small screens.
https://gnss-sdr.org/docs/sp-blocks/signal-source/#implementation-osmosdr_signal_source
System: Ubuntu 20.04, Firefox 85.0, Monitor Resolution: 1366x768
(also some field names in the side pane are not broken to new lines and stick out..)
Cheers!
The text was updated successfully, but these errors were encountered: