Skip to content

Conversation

@fekete-robert
Copy link
Contributor

Useful when the left-side toc is longer than the screen.
Fixes #348 and #257

This is an update of the original patch of narrenfrei

Notes:

Useful when the left-side toc is longer than the screen.
Fixes google#348 and google#257

This is an update of the original patch of narrenfrei
@google-cla
Copy link

google-cla bot commented May 25, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@LisaFC
Copy link
Collaborator

LisaFC commented May 30, 2022

@narrenfrei do you want to take a look at this?

@fekete-robert
Copy link
Contributor Author

Hi @LisaFC and @narrenfrei, have you had a chance to review this PR?

@raum51
Copy link
Contributor

raum51 commented Sep 13, 2022

I think in the netlify preview the functionality doesn't work, because the sample page ist built with the cached sidebar sidebar_cache_limit: 10.

Also the script that adapts the sidebar menu when the sidebar cache is use have to set the id of the span to td-sidebar-nav-active-item. Actually only a class get added.

$("#td-section-nav #{{ $mid }}-li span").addClass("td-sidebar-nav-active-item");

@fekete-robert
Copy link
Contributor Author

Many thanks for the comments, I'll try to fix them later this week

@fekete-robert
Copy link
Contributor Author

@raum51 : I've added a line to add the id to the span, but if the cache limit is low, the scrolling doesn't work for some reason. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants