Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#54981 new defect (bug)

WP 5.9 Gallery Block Issues

Reported by: hmnvtn's profile hmnvtn Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9
Component: Editor Keywords:
Focuses: Cc:

Description

I have an image gallery in all of my posts with images set to not cropped, thumbnail size, 3 or 4 columns.

If I look at an old post (anything before the WP 5.9 upgrade this week), the gallery images look fine. If I go into that old post and update it (without changing anything in the gallery), the gallery images change to stretched in safari and full-size, singe column (instead of thumbnail, 3 or 4 columns) in chrome and firefox.

Also, newly created posts are having the same issue since WP 5.9 upgrade.

Issue is present while using either GeneratePress or Twenty Twenty-Two themes.

I have tried deleting gallery and re-adding, same issue.

Change History (4)

#1 @hmnvtn
2 years ago

I have added the following code which resolves the only one column issue on chrome or firefox:

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
}

#2 @hmnvtn
2 years ago

It appears that the "stretching" images issue is from 5.9 trying to full justify the gallery block, even if you set justification to none, center, etc. Flipping on the crop images button seems to revolve the issue, but I am still limited to large size images, not thumbnails. Anyway, it is a temporary work-around.

#3 @glendaviesnz
2 years ago

Thanks for reporting this @hmnvtn

I wasn't able to replicate this in chrome, firefox, or safari:

https://i.imgur.com/ET6C3b5.png

Are you able to provide a link to a public page where this problem is occurring for you?

Last edited 2 years ago by glendaviesnz (previous) (diff)

#4 @SergeyBiryukov
2 years ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.