Skip to content

Commit

Permalink
[Glitch] Change mobile breakpoint back to old version and allow main …
Browse files Browse the repository at this point in the history
…column to shrink

Port b5bdc69 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire committed Sep 23, 2024
1 parent c2c3a66 commit 38744a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class ColumnsArea extends ImmutablePureComponent {
};

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

state = {
renderComposePanel: !(this.mediaQuery && this.mediaQuery.matches),
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/flavours/glitch/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2889,7 +2889,7 @@ a.account__display-name {
&__main {
box-sizing: border-box;
width: 100%;
flex: 0 0 auto;
flex: 0 1 auto;
display: flex;
flex-direction: column;

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: 1207px;
$no-gap-breakpoint: 1175px;
$mobile-breakpoint: 630px;

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

0 comments on commit 38744a4

Please sign in to comment.