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,13 +198,14 @@ 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(
.pipe( watchElementSize(container)
takeUntil(push$.pipe(takeLast(1))), .pipe(
map(({ width, height }) => width && height), takeUntil(push$.pipe(takeLast(1))),
distinctUntilChanged(), map(({ width, height }) => width && height),
switchMap(active => active ? annotations$ : EMPTY) distinctUntilChanged(),
) switchMap(active => active ? annotations$ : EMPTY)
)
) )
) )
} }