Skip to content

Commit

Permalink
Increase no-gap-breakpoint by 32px to fix overflow (mastodon#31889)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Sep 17, 2024
1 parent 5a33a56 commit d2f9075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export default class ColumnsArea extends ImmutablePureComponent {
children: PropTypes.node,
};

// Corresponds to (max-width: $no-gap-breakpoint + 285px - 1px) in SCSS
mediaQuery = 'matchMedia' in window && window.matchMedia('(max-width: 1174px)');
// Corresponds to (max-width: $no-gap-breakpoint - 1px) in SCSS
mediaQuery = 'matchMedia' in window && window.matchMedia('(max-width: 1206px)');

state = {
renderComposePanel: !(this.mediaQuery && this.mediaQuery.matches),
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/styles/mastodon/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $media-modal-media-max-width: 100%;
// put margins on top and bottom of image to avoid the screen covered by image.
$media-modal-media-max-height: 80%;

$no-gap-breakpoint: 1175px;
$no-gap-breakpoint: 1207px;
$mobile-breakpoint: 630px;

$font-sans-serif: 'mastodon-font-sans-serif' !default;
Expand Down

0 comments on commit d2f9075

Please sign in to comment.