Skip to content

Commit

Permalink
Modal Mobile CSS fix
Browse files Browse the repository at this point in the history
Fix an issue with embed modal overflow causing overlay outside mobile screens.
  • Loading branch information
DismalShadowX authored Oct 23, 2024
1 parent 029c99b commit 573d881
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5803,15 +5803,21 @@ a.status-card {
z-index: 9999;
pointer-events: none;
user-select: none;
overflow: hidden;
}

.modal-root__modal {
pointer-events: auto;
user-select: text;
display: flex;
overflow: auto;
max-width: 90vw;
max-height: 90vh;

@media screen and (width <= $mobile-breakpoint) {
margin-top: auto;
max-width: 100vw;
max-height: 80vh;
}
}

Expand Down

1 comment on commit 573d881

@DismalShadowX
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

Image

After:

Image

Please sign in to comment.