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

Twenty Twenty-Three: Set fixed max height for featured images #4821

Conversation

mikachan
Copy link
Member

@mikachan mikachan commented Jul 10, 2023

This changes the height of the featured images in the Archive, Home, Index, and Search templates from max(15vw, 30vh) to clamp(15vw, 30vh, 400px). This is to set a maximum fixed-pixel height on the featured images, to prevent them from causing an ever-expanding iFrame height. Please see WordPress/gutenberg#52297 for more details.

Before After
Screenshot 2023-07-10 at 12 27 02 Screenshot 2023-07-10 at 12 37 16

Trac ticket: https://core.trac.wordpress.org/ticket/58766


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@annezazu
Copy link

Noting that we can ideally get this in before the Product Demo on July 27th as we'll use the TT3 theme then.

@ramonjd
Copy link
Member

ramonjd commented Jul 11, 2023

Thanks a lot @mikachan LGTM

Here are some huge GIFs 🎉

Before

2023-07-11 15 38 59

After

2023-07-11 15 37 53

@tellthemachines
Copy link
Contributor

Committed in r56207 / 4e864a1.

@mikachan mikachan deleted the twenty-twenty-three/update-featured-image-heights branch July 18, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants