]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/tri-layout.js
Images: Updated local disk to have open dir perms
[bookstack] / resources / js / components / tri-layout.js
index 6510a690e8aa39c761454a898ada8531a64dadfa..be9388e8d4615f5919a81068ff57915bc9d52ae9 100644 (file)
@@ -19,7 +19,7 @@ export class TriLayout extends Component {
 
         // Watch layout changes
         this.updateLayout();
-        window.addEventListener('resize', event => {
+        window.addEventListener('resize', () => {
             this.updateLayout();
         }, {passive: true});
     }
@@ -27,7 +27,7 @@ export class TriLayout extends Component {
     updateLayout() {
         let newLayout = 'tablet';
         if (window.innerWidth <= 1000) newLayout = 'mobile';
-        if (window.innerWidth >= 1400) newLayout = 'desktop';
+        if (window.innerWidth > 1400) newLayout = 'desktop';
         if (newLayout === this.lastLayoutType) return;
 
         if (this.onDestroy) {