Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#47937 closed defect (bug) (fixed)

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

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

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 years ago.

Download all attachments as: .zip

Change History (4)

@kjellr
7 years ago

#1 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review → 5.3

#2 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 45897:

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

Props kjellr.
Fixes #47937.

#3 @sabernhardt
5 years ago

#47290 was marked as a duplicate.

Note: See TracTickets for help on using tickets.