From: Dan Brown Date: Mon, 6 May 2019 15:08:08 +0000 (+0100) Subject: Fixed intersection observer check on iOS X-Git-Tag: v0.26.0~1^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/b9ad3f9f65d471eb193633f45b50f92991a71128 Fixed intersection observer check on iOS --- diff --git a/resources/assets/js/components/page-display.js b/resources/assets/js/components/page-display.js index 1aeeaf248..e87966d7d 100644 --- a/resources/assets/js/components/page-display.js +++ b/resources/assets/js/components/page-display.js @@ -184,9 +184,9 @@ class PageDisplay { setupNavHighlighting() { // Check if support is present for IntersectionObserver - if (!'IntersectionObserver' in window || - !'IntersectionObserverEntry' in window || - !'intersectionRatio' in window.IntersectionObserverEntry.prototype) { + if (!('IntersectionObserver' in window) || + !('IntersectionObserverEntry' in window) || + !('intersectionRatio' in window.IntersectionObserverEntry.prototype)) { return; } diff --git a/resources/assets/sass/_header.scss b/resources/assets/sass/_header.scss index 7fd6d7ae9..c4ca4607a 100644 --- a/resources/assets/sass/_header.scss +++ b/resources/assets/sass/_header.scss @@ -215,6 +215,7 @@ header .search-box { .tri-layout-mobile-tab { text-align: center; border-bottom: 3px solid #BBB; + cursor: pointer; &:first-child { border-right: 1px solid #DDD; }