Formatting

This commit is contained in:
squidfunk
2022-03-26 14:15:19 +01:00
parent dfba03f15e
commit c7cc8f07ab
4 changed files with 12 additions and 11 deletions

View File

@@ -214,7 +214,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/bundle.5ea521e9.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.c44cc438.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@@ -198,7 +198,8 @@ export function mountCodeBlock(
tap(state => push$.next(state)), tap(state => push$.next(state)),
finalize(() => push$.complete()), finalize(() => push$.complete()),
map(state => ({ ref: el, ...state })), map(state => ({ ref: el, ...state })),
mergeWith(watchElementSize(container) mergeWith(
watchElementSize(container)
.pipe( .pipe(
takeUntil(push$.pipe(takeLast(1))), takeUntil(push$.pipe(takeLast(1))),
map(({ width, height }) => width && height), map(({ width, height }) => width && height),