WordPress.org

Make WordPress Core

Opened 7 weeks ago

Closed 7 weeks ago

#47937 closed defect (bug) (fixed)

Twenty Nineteen: Center-aligned images in columns break beyond the column boundaries.

Reported by: kjellr Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch has-screenshots
Focuses: Cc:
PR Number:

Description

As reported over in the Gutenberg repository:
https://github.com/WordPress/gutenberg/issues/15832


Center-aligned images within columns in Twenty Nineteen inherit an incorrect max-width, which forces them to extend beyond the column itself:

http://cldup.com/F2p0YCC06A.png

The attached patch corrects this by limiting the max-width of the image's figure wrapper to 100%:

http://cldup.com/HjxyxCdr0g.png

Attachments (1)

47937.diff (2.5 KB) - added by kjellr 7 weeks ago.

Download all attachments as: .zip

Change History (3)

@kjellr
7 weeks ago

#1 @SergeyBiryukov
7 weeks ago

  • Milestone changed from Awaiting Review to 5.3

#2 @SergeyBiryukov
7 weeks ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45897:

Twenty Nineteen: Make sure center-aligned images in columns do not break beyond the column boundaries.

Props kjellr.
Fixes #47937.

Note: See TracTickets for help on using tickets.