Skip to content
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

Fix sidebar scrolling with part titles. #1265

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jun 25, 2020

If a summary included section titles, then the automatic scrolling for the sidebar was broken (it was always scrolled to the top of the sidebar).

@ehuss
Copy link
Contributor Author

ehuss commented Jun 25, 2020

@mark-i-m I'm not sure if there was a reason to include the "active" class on the section titles. I noticed that the sidebar scrolling was broken on the rustc-dev-guide.

@mark-i-m
Copy link
Member

@ehuss Oh, I didn't even know this was a feature. I probably added active to make it look right... my web-dev experience is pretty limited; I didn't realize it had an effect.

@ehuss ehuss merged commit 8432df1 into rust-lang:master Jul 3, 2020
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
Fix sidebar scrolling with part titles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants