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": "assets/javascripts/bundle.d5b17bb4.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.db3416d7.min.js.map",
|
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d5b17bb4.min.js.map",
|
||||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.91be5808.min.js",
|
"assets/javascripts/vendor.js": "assets/javascripts/vendor.186f2b9b.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.91be5808.min.js.map",
|
"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": "assets/javascripts/worker/search.cbc634e2.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.cbc634e2.min.js.map",
|
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.cbc634e2.min.js.map",
|
||||||
"assets/stylesheets/main.css": "assets/stylesheets/main.f6c1319f.min.css",
|
"assets/stylesheets/main.css": "assets/stylesheets/main.f6c1319f.min.css",
|
||||||
|
@ -172,8 +172,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.91be5808.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/vendor.186f2b9b.min.js' | url }}"></script>
|
||||||
<script src="{{ 'assets/javascripts/bundle.db3416d7.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.d5b17bb4.min.js' | url }}"></script>
|
||||||
{%- set translations = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -36,7 +36,7 @@ import { getActiveElement } from "../_"
|
|||||||
* @param value - Whether the element should be focused
|
* @param value - Whether the element should be focused
|
||||||
*/
|
*/
|
||||||
export function setElementFocus(
|
export function setElementFocus(
|
||||||
el: HTMLElement, value: boolean = true
|
el: HTMLElement, value: boolean = true
|
||||||
): void {
|
): void {
|
||||||
if (value)
|
if (value)
|
||||||
el.focus()
|
el.focus()
|
||||||
|
@ -27,7 +27,7 @@ import {
|
|||||||
map,
|
map,
|
||||||
startWith,
|
startWith,
|
||||||
switchMap,
|
switchMap,
|
||||||
withLatestFrom
|
zipWith
|
||||||
} from "rxjs/operators"
|
} from "rxjs/operators"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -99,7 +99,7 @@ export function mountHeader(
|
|||||||
.pipe(
|
.pipe(
|
||||||
map(main => getElement("h1, h2, h3, h4, h5, h6", main)!),
|
map(main => getElement("h1, h2, h3, h4, h5, h6", main)!),
|
||||||
filter(hx => typeof hx !== "undefined"),
|
filter(hx => typeof hx !== "undefined"),
|
||||||
withLatestFrom(useComponent("header-title")),
|
zipWith(useComponent("header-title")),
|
||||||
switchMap(([hx, title]) => watchViewportAt(hx, { header$, viewport$ })
|
switchMap(([hx, title]) => watchViewportAt(hx, { header$, viewport$ })
|
||||||
.pipe(
|
.pipe(
|
||||||
map(({ offset: { y } }) => {
|
map(({ offset: { y } }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user