mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed header title component
This commit is contained in:
parent
7820d85949
commit
ee808c769e
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.d5b17bb4.min.js.map
Normal file
1
material/assets/javascripts/bundle.d5b17bb4.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/vendor.186f2b9b.min.js.map
Normal file
1
material/assets/javascripts/vendor.186f2b9b.min.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.db3416d7.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.db3416d7.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.91be5808.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.91be5808.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.d5b17bb4.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d5b17bb4.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.186f2b9b.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.186f2b9b.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.cbc634e2.min.js",
|
||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.cbc634e2.min.js.map",
|
||||
"assets/stylesheets/main.css": "assets/stylesheets/main.f6c1319f.min.css",
|
||||
|
@ -172,8 +172,8 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/vendor.91be5808.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.db3416d7.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/vendor.186f2b9b.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.d5b17bb4.min.js' | url }}"></script>
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
@ -27,7 +27,7 @@ import {
|
||||
map,
|
||||
startWith,
|
||||
switchMap,
|
||||
withLatestFrom
|
||||
zipWith
|
||||
} from "rxjs/operators"
|
||||
|
||||
import {
|
||||
@ -99,7 +99,7 @@ export function mountHeader(
|
||||
.pipe(
|
||||
map(main => getElement("h1, h2, h3, h4, h5, h6", main)!),
|
||||
filter(hx => typeof hx !== "undefined"),
|
||||
withLatestFrom(useComponent("header-title")),
|
||||
zipWith(useComponent("header-title")),
|
||||
switchMap(([hx, title]) => watchViewportAt(hx, { header$, viewport$ })
|
||||
.pipe(
|
||||
map(({ offset: { y } }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user