Fixed breakpoint unit for media queries in JS

This commit is contained in:
squidfunk 2025-07-01 11:57:45 +02:00
parent 462bf384ff
commit 1f7a496234
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 7 additions and 7 deletions

View File

@ -245,7 +245,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.13a4f30d.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.56ea9cef.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}

View File

@ -131,8 +131,8 @@ const keyboard$ = watchKeyboard()
/* Set up media observables */
const viewport$ = watchViewport()
const tablet$ = watchMedia("(min-width: 960px)")
const screen$ = watchMedia("(min-width: 1220px)")
const tablet$ = watchMedia("(min-width: 60em)")
const screen$ = watchMedia("(min-width: 76.25em)")
const print$ = watchPrint()
/* Retrieve search index, if search is enabled */