-
Notifications
You must be signed in to change notification settings - Fork 394
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
doc engine: fix scroll bar for the content sidebar #1284
Conversation
@iKBAHT thanks! great. A few things I noticed so far:
|
I implemented noticed things. Also, I decrease distance between buttons from |
@iKBAHT looks great overall, one more question - right now when there are some items that are hidden - sometimes it is not obvious that they exist (scroll is hidden). I kinda like that scroll is hidden, but is there a way from a user perspective to see that there is something below and you can scroll it ...? what do you think? |
I think the best way, in this case, is to always show a scroll bar if it exists. |
I don't even know how else to show the user that there is something below |
@iKBAHT yeah, I was thinking to try some fade out and show scroll when you hover over it. The problem with always showing it is that it looks like a border line in some cases (when it's almost full) :) Anyways, not a big deal - let me know if it's easy to try those two things ... otherwise I think we cab merge it as is. |
Fade-out is not a common practice, users are familiar with scrolls. Also, fade-out takes an already limited amount of space. |
yep, works for now One more thing we need to think and take care of: We need to scroll into view the highlighted element when we open a link like this (and screen is not large enough). or as we scroll the screen and some items are not visible |
done Also, during implementation, I found the new bug #1306 |
Probably the same as iterative/gatsby-theme-iterative#38 🙂 |
Something funny is happening - when I open https://dvc-landing-fix-scroll--bt87yn.herokuapp.com/ and click docs I'm getting: Note - no Home entry, Content went under the menu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iKBAHT please check the deployed version (https://dvc-landing-fix-scroll--bt87yn.herokuapp.com/) - all the navigation is quite broken for me.
Yes, it's my fail. I tested only when scroll exists. |
@iKBAHT still see some problems - https://dvc-landing-fix-scroll--bt87yn.herokuapp.com/doc/command-reference/fetch |
It's standard behavior, chrome works the same way. I mean if block doesn't have it own scroll, then scroll goes to parent.
Can you please write steps to reproduce. Everything works for me. |
In this case it looks like it happens even if block has its own scroll.
yes, we support all major browsers + iOS Safari + Android
may be we talk about different problem. I mean that an item on the right sidebar should be scrolled into view (same as we do with the left sidebar). |
Everything works for me. Can you share the problem somehow.
I think it impossible. Right and left sidebars control by one scrollbar. And if scroll goes to the last article, and it short, the left bar also goes down with the whole page. It comes from main goal of this PR - "fix scroll bar for the content sidebar" |
Okay 👌 Merging this as this is a great improvement anyway, and I will create a separate issue to describe improvements left. It'll be easier to iterate from this. |
Fixes #1198