Skip to content

Commit

Permalink
Styles: Fixed breakpoint overlap
Browse files Browse the repository at this point in the history
Alters common breakpoint utilities to not overlap at breakpoints which
would cause broken layout at those points.
For #5396
  • Loading branch information
ssddanbrown committed Feb 23, 2025
1 parent 35b45a2 commit 5c78f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/tri-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions resources/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
@media screen and (max-width: $size) { @content; }
}
@mixin larger-than($size) {
@media screen and (min-width: $size) { @content; }
@media screen and (min-width: ($size + 1)) { @content; }
}
@mixin between($min, $max) {
@media screen and (min-width: $min) and (max-width: $max) { @content; }
@media screen and (min-width: ($min + 1)) and (max-width: $max) { @content; }
}

// Padding shorthand using logical operators to better support RTL.
Expand Down

0 comments on commit 5c78f83

Please sign in to comment.