mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-18 10:22:28 +08:00
Styles: Fixed breakpoint overlap
Alters common breakpoint utilities to not overlap at breakpoints which would cause broken layout at those points. For #5396
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user