Fixed disappearance of header shadow on iOS

This commit is contained in:
squidfunk 2020-02-15 21:52:47 +01:00
parent a55554f90d
commit 694eaca889
13 changed files with 30 additions and 45 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

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,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.54e9a512.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.54e9a512.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.676c670f.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.676c670f.min.js.map",
"assets/javascripts/worker/packer.js": "assets/javascripts/worker/packer.c14659e8.min.js",
"assets/javascripts/worker/packer.js.map": "assets/javascripts/worker/packer.c14659e8.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.91831cf6.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.91831cf6.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.3144ce89.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.3144ce89.min.js.map",
"assets/stylesheets/app-palette.scss": "assets/stylesheets/app-palette.8c25017f.min.css",
"assets/stylesheets/app.scss": "assets/stylesheets/app.82c13014.min.css"
"assets/stylesheets/app.scss": "assets/stylesheets/app.a4472ab8.min.css"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.82c13014.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.a4472ab8.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/app-palette.8c25017f.min.css' | url }}">
{% endif %}
@ -190,7 +190,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.54e9a512.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.676c670f.min.js' | url }}"></script>
<script id="__lang" type="application/json">
{%- set translations = {} -%}
{%- for key in [
@ -209,7 +209,7 @@
{%- endfor -%}
{{ translations | tojson }}
</script>
<script>app=initialize({base:"{{ base_url }}",worker:{search:"{{ 'assets/javascripts/worker/search.91831cf6.min.js' | url }}",packer:"{{ 'assets/javascripts/worker/packer.c14659e8.min.js' | url }}"}})</script>
<script>app=initialize({base:"{{ base_url }}",worker:{search:"{{ 'assets/javascripts/worker/search.3144ce89.min.js' | url }}",packer:"{{ 'assets/javascripts/worker/packer.c14659e8.min.js' | url }}"}})</script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -77,7 +77,7 @@ export function mountTabs(
if (screen) {
return watchViewportFrom(el, { header$, viewport$ })
.pipe(
paintHideable(el, 20),
paintHideable(el, 10),
map(hidden => ({ hidden }))
)

View File

@ -46,8 +46,8 @@ export interface ViewportOffset {
*/
export function getViewportOffset(): ViewportOffset {
return {
x: pageXOffset,
y: pageYOffset
x: Math.max(0, pageXOffset),
y: Math.max(0, pageYOffset)
}
}