mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-04 13:12:20 -04:00
Fixed disappearing version selector when hiding page title
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -245,7 +245,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.50899def.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.eef24d18.min.js' | url }}"></script>
|
||||
{% for script in config.extra_javascript %}
|
||||
{{ script | script_tag }}
|
||||
{% endfor %}
|
||||
|
||||
@@ -92,7 +92,7 @@ export function watchHeaderTitle(
|
||||
map(({ offset: { y } }) => {
|
||||
const { height } = getElementSize(el)
|
||||
return {
|
||||
active: y >= height
|
||||
active: height > 0 && y >= height
|
||||
}
|
||||
}),
|
||||
distinctUntilKeyChanged("active")
|
||||
|
||||
Reference in New Issue
Block a user