Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in media layout with multiple images #103

Merged
merged 2 commits into from
Aug 3, 2023

Conversation

tywayne
Copy link
Contributor

@tywayne tywayne commented Jul 22, 2023

The changes introduced in #99 inadvertently broke the media layouts when there is more than one image present (reported in #101).

The changes presented here will keep with the spirit of making the base theme match Twitter as closely as possible, while also supporting a grid of multiple images.

@lfades
Copy link
Member

lfades commented Jul 27, 2023

Hi @tywayne 👋

Thank you very much for the PR. I tested it locally and it looks good for 1, 2, and 4 images. The layout for 3 images looks very similar to the one for 2 but it should be more similar to the one for 4.

E.g for https://twitter.com/JosngelGarcaBa3/status/1684679511974293506

image

react-tweet shows

image

4 images looks real nice:

image

@tywayne
Copy link
Contributor Author

tywayne commented Jul 28, 2023

@lfades Ahh yep, I missed that. Latest commit should fix it up.

Copy link
Member

@lfades lfades left a comment

Choose a reason for hiding this comment

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

Amazing stuff. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants