-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Latest Posts Block] Gallery block not displaying properly on the page #88833
Comments
User report -- 7934235-zd-a8c |
Support References This comment is automatically generated. Please do not edit it.
|
📌 REPRODUCTION RESULTS 📌 FINDINGS/SCREENSHOTS/VIDEO 📌 ACTIONS |
Hi @rw-ye, I can no longer reproduce this at wordpress.com. I believe Lego team hid some of the core blocks and I can't see how I can insert a Latest Posts block. However, I don't think this is a bug anyway. How the gallery displays in a post and how a post with a gallery block displays in a Latest Posts block don't necessarily need to match. I think the issue here is that there is only one post in the Latest Posts block, which will always look a bit weird. This is a core block too so it would be an issue for Dotorg if anything. Here is how it looks in core when there are three posts. It looks a bit odd because there is a different level of content but it's not easy to make it look good in all cases. So, I would say this is working as expected and can probably be closed. FYI I am going to make the priority normal. |
Hey @mpkelly 👋
I think the expectation from customers (such as in 7934235-zd-a8c) is that using the Full posts option in Latest posts block will display the full posts and match how it displays in the post itself. If it is true, that certain blocks won't display the same as in the post, I think that's something that would need to be clarified as to why that would be the case. It'll also help when explaining to customers if more reports about this come up as well.
I reproduced the issue on multiple posts and the formatting is odd. The same issue also occurs with the Columns Block and Row Blocks as well, and the content will show stacked on top of each other instead of in a row or columns (video below). Here is a link to my page with the Latest posts block which displays 2 posts that utilize the gallery, columns and row block: https://webrw.blog/test-2/ Screen.Recording.2024-04-24.at.4.59.21.PM.mov |
I could reproduce it, and it seems to be a Gutenberg issue. So I opened this issue there. Good news is that there is a recent PR partially fixing this already: WordPress/gutenberg#69466 |
Quick summary
When displaying full posts in the Latest Posts Block, posts with a Gallery block do not display properly and appear stacked on the page.
This is how the Gallery block is displayed in the Latest posts block
How the Gallery block is displayed on the actual post
Steps to reproduce
What you expected to happen
For the Gallery block to display properly across the page, as it does on the post
What actually happened
The Gallery block is stacked
Impact
Most (> 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
Simple, Atomic
Logs or notes
The workaround is to use the Query Loop Block instead.
The text was updated successfully, but these errors were encountered: