Skip to content

Commit

Permalink
[Glitch] Increase no-gap-breakpoint by 32px to fix overflow
Browse files Browse the repository at this point in the history
Port d2f9075 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
ClearlyClaire committed Sep 17, 2024
1 parent d5c212d commit 49dacb1
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 @@ -64,8 +64,8 @@ export default class ColumnsArea extends ImmutablePureComponent {
openSettings: PropTypes.func,
};

// 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/flavours/glitch/styles/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 49dacb1

Please sign in to comment.