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

View File

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

View File

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