Skip to content

Commit 5c78f83

Browse files
committed
Styles: Fixed breakpoint overlap
Alters common breakpoint utilities to not overlap at breakpoints which would cause broken layout at those points. For #5396
1 parent 35b45a2 commit 5c78f83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/js/components/tri-layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TriLayout extends Component {
2727
updateLayout() {
2828
let newLayout = 'tablet';
2929
if (window.innerWidth <= 1000) newLayout = 'mobile';
30-
if (window.innerWidth >= 1400) newLayout = 'desktop';
30+
if (window.innerWidth > 1400) newLayout = 'desktop';
3131
if (newLayout === this.lastLayoutType) return;
3232

3333
if (this.onDestroy) {

resources/sass/_mixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
@media screen and (max-width: $size) { @content; }
44
}
55
@mixin larger-than($size) {
6-
@media screen and (min-width: $size) { @content; }
6+
@media screen and (min-width: ($size + 1)) { @content; }
77
}
88
@mixin between($min, $max) {
9-
@media screen and (min-width: $min) and (max-width: $max) { @content; }
9+
@media screen and (min-width: ($min + 1)) and (max-width: $max) { @content; }
1010
}
1111

1212
// Padding shorthand using logical operators to better support RTL.

0 commit comments

Comments
 (0)