mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-21 21:01:30 +08:00
Fixed intersection observer check on iOS
This commit is contained in:
@ -184,9 +184,9 @@ class PageDisplay {
|
|||||||
|
|
||||||
setupNavHighlighting() {
|
setupNavHighlighting() {
|
||||||
// Check if support is present for IntersectionObserver
|
// Check if support is present for IntersectionObserver
|
||||||
if (!'IntersectionObserver' in window ||
|
if (!('IntersectionObserver' in window) ||
|
||||||
!'IntersectionObserverEntry' in window ||
|
!('IntersectionObserverEntry' in window) ||
|
||||||
!'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
|
!('intersectionRatio' in window.IntersectionObserverEntry.prototype)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,6 +215,7 @@ header .search-box {
|
|||||||
.tri-layout-mobile-tab {
|
.tri-layout-mobile-tab {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 3px solid #BBB;
|
border-bottom: 3px solid #BBB;
|
||||||
|
cursor: pointer;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-right: 1px solid #DDD;
|
border-right: 1px solid #DDD;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user