-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Stack Block: Featured images with aspect ratio set overflow #67430
Comments
Thanks for the report. Unfortunately, I was not able to reproduce this issue. Can you switch to the code editor and paste your HTML here? It works as expected in my environment: And here is my code: <!-- wp:query {"queryId":11,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[],"format":[]}} -->
<div class="wp-block-query">
<!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group">
<!-- wp:post-featured-image /-->
<!-- wp:post-title /-->
</div>
<!-- /wp:group -->
<!-- /wp:post-template -->
</div>
<!-- /wp:query --> |
@t-hamano Oh, sorry! I realised that I missed an important piece of info: aspect ratio 🤦🏻♂️ In my testing, the featured images with most aspect ratio options overflowed.
|
Hey @iamtakashi, I also tried to reproduce the issue but it works fine even with your provided code. I followed the same steps of reproduction but I wasn't able to reproduce the issue. Environment
Code Editor:
Screenshots:Editor: Frontend: |
It happens to me as well, @iamtakashi. I recorded my screen to share with @t-hamano and @himanshupathak95 here. Everything works fine for the other blocks for gathering elements, but the stacks are really affected. Environment:
|
@t-hamano @himanshupathak95 It doesn't seem to be just me. Could you try again using different proportions of featured images in each post and trying different aspect ratios? |
Thanks @iamtakashi @henriqueiamarino for the follow-ups. When I set the image aspect ratio to wide, I was able to reproduce the issue. Here is a screencast for the same: Screen.Recording.2024-12-03.at.11.03.03.mov |
Hi, |
I've tested this now again, and the overflow issue still happens. |
Description
Featured images [edit: with an aspect ratio] overflow and break the layout. If you change the stack to a group, the featured image will appear as expected. Disabling the Gutenberg plugin doesn't seem to fix the issue 😧 so if I need to report this somewhere else (trac?), let me know.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: