mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Added tri-layout desktop sticky-scroll
This commit is contained in:
@ -18,7 +18,9 @@ class TriLayout {
|
||||
}
|
||||
|
||||
updateLayout() {
|
||||
const newLayout = (window.innerWidth <= 1000) ? 'mobile' : 'desktop';
|
||||
let newLayout = 'tablet';
|
||||
if (window.innerWidth <= 1000) newLayout = 'mobile';
|
||||
if (window.innerWidth >= 1400) newLayout = 'desktop';
|
||||
if (newLayout === this.lastLayoutType) return;
|
||||
|
||||
if (this.onDestroy) {
|
||||
@ -28,7 +30,7 @@ class TriLayout {
|
||||
|
||||
if (newLayout === 'desktop') {
|
||||
this.setupDesktop();
|
||||
} else {
|
||||
} else if (newLayout === 'mobile') {
|
||||
this.setupMobile();
|
||||
}
|
||||
|
||||
@ -50,7 +52,7 @@ class TriLayout {
|
||||
}
|
||||
|
||||
setupDesktop() {
|
||||
// TODO
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user