mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Fixed table of contents highlighting for active anchor links
This commit is contained in:
parent
82b0ea8b0e
commit
45aff3cfc5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.6ced434e.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.6ced434e.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.15ed33ca.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.15ed33ca.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.08c56446.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.08c56446.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.8c7e0a7e.min.js",
|
||||
|
@ -185,7 +185,7 @@
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/vendor.08c56446.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.6ced434e.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.15ed33ca.min.js' | url }}"></script>
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
@ -101,7 +101,7 @@ export function watchAnchorList(
|
||||
/* Compute necessary adjustment for header */
|
||||
const adjust$ = header$
|
||||
.pipe(
|
||||
map(header => 18 + header.height)
|
||||
map(header => 24 + header.height)
|
||||
)
|
||||
|
||||
/* Compute partition of previous and next anchors */
|
||||
|
Loading…
Reference in New Issue
Block a user