Fixed header title component

This commit is contained in:
squidfunk 2020-09-27 18:07:48 +02:00
parent 7820d85949
commit ee808c769e
10 changed files with 16 additions and 16 deletions

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

File diff suppressed because one or more lines are too long

View File

@ -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",

View File

@ -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",

View File

@ -36,7 +36,7 @@ import { getActiveElement } from "../_"
* @param value - Whether the element should be focused
*/
export function setElementFocus(
el: HTMLElement, value: boolean = true
el: HTMLElement, value: boolean = true
): void {
if (value)
el.focus()

View File

@ -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 } }) => {