feat(ui): make media library responsive#7820
Open
delucis wants to merge 8 commits into
Open
Conversation
Calculation would result in a column count of 0 which would error. This is now clamped to a minimum of 1.
yanthomasdev
approved these changes
May 20, 2026
Contributor
yanthomasdev
left a comment
There was a problem hiding this comment.
I think it might be better to do this in small pieces
I agree! Definitely helps reviewing vs. a lot of styling changes at one time.
I tested the changes here by adding a meta viewport and they worked great, thanks @delucis
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #7241
This PR makes the media library modal and contents responsive for small screens.
My ultimate goal would be to continue more work towards making the UI responsive in the vein of #7298, but seeing how that large PR stalled, I think it might be better to do this in small pieces, so this focuses only on the media library. It has some design choices in common with #7298, but diverges in other places. I mainly focused on limiting changes to styling as much as possible.
Decisions:
There is still some more underlying work to do to avoid overflow and include the correct meta
viewporttags to make this work as discussed in #7298, but I think this work can be done incrementally.Examples
Here are some examples showing the main media library and the image picker inside a post in the dev project:
Test plan
I’ve tested extensively locally, existing tests should pass as no new functionality was added, only styling improvements.
Checklist
Please add a
xinside each checkbox:A picture of a cute animal (not mandatory but encouraged)