mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-20 12:21:28 +08:00
Fixed intersection observer check on iOS
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user