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

[Latest Posts Block] Gallery block not displaying properly on the page #88833

Open
rw-ye opened this issue Mar 24, 2024 · 6 comments
Open

[Latest Posts Block] Gallery block not displaying properly on the page #88833

rw-ye opened this issue Mar 24, 2024 · 6 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. Groundskeeping Issues handled through Dotcom Groundskeeping rotations [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@rw-ye
Copy link

rw-ye commented Mar 24, 2024

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

Screenshot 2024-03-24 at 12 15 37 PM

How the Gallery block is displayed on the actual post

Screenshot 2024-03-24 at 12 11 30 PM

Steps to reproduce

  1. Create a new post
  2. Add a Gallery Block to the post with multiple images (2 or more)
  3. Publish the post
  4. Create a new page
  5. Add the Latest Posts Block to the page.
  6. In the Latest Posts block settings, enable Post content and select Full Post under Show
  7. View the page on the front-end and the gallery images will show stacked

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.

@rw-ye rw-ye added [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Core Blocks Blocks that come with Gutenberg. labels Mar 24, 2024
@rw-ye
Copy link
Author

rw-ye commented Mar 24, 2024

User report -- 7934235-zd-a8c

Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 7934235-zen

@github-actions github-actions bot added [Pri] Normal Schedule for the next available opportuinity. Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". labels Mar 24, 2024
@maciejpilarski maciejpilarski added Triaged To be used when issues have been triaged. and removed Needs triage Ticket needs to be triaged labels Mar 25, 2024
@maciejpilarski maciejpilarski moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Mar 25, 2024
@maciejpilarski
Copy link

📌 REPRODUCTION RESULTS
– Tested on Simple – Replicated
– Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO
I was able to reproduce the issue on any theme by following the exact steps.

📌 ACTIONS
– Triage

@mpkelly
Copy link
Contributor

mpkelly commented Apr 22, 2024

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.

Image

So, I would say this is working as expected and can probably be closed. FYI I am going to make the priority normal.

@rw-ye
Copy link
Author

rw-ye commented Apr 24, 2024

Hey @mpkelly 👋

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 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 think the issue here is that there is only one post in the Latest Posts block, which will always look a bit weird.

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

@renatho
Copy link
Contributor

renatho commented Mar 10, 2025

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

@renatho renatho added the Groundskeeping Issues handled through Dotcom Groundskeeping rotations label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. Groundskeeping Issues handled through Dotcom Groundskeeping rotations [Platform] Atomic [Platform] Simple [Pri] Normal Schedule for the next available opportuinity. [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug When a feature is broken and / or not performing as intended
Projects
Development

No branches or pull requests

4 participants