[wp-trac] [WordPress Trac] #45716: Twenty Nineteen: Push right-aligned images outside of the text column on the front end

WordPress Trac noreply at wordpress.org
Wed Dec 19 22:52:39 UTC 2018


#45716: Twenty Nineteen: Push right-aligned images outside of the text column on
the front end
---------------------------+-----------------------------
 Reporter:  kjellr         |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  5.0.1
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 Right-aligned images in Twenty Nineteen are intended to float outside of
 the text column in both the front and back end. Currently, this works in
 the editor, but not on the front end.

 The attached patch sets the `max-width` for `wp-block-image` to `100%`,
 allowing us push right-floated images outside the content area. It also
 includes style adjustments to center-aligned images to preserve their
 behavior alongside that change.

 Before:

 [[Image(https://cldup.com/U04bNS__he-3000x3000.png)]]

 After:

 [[Image(https://cldup.com/aGQ7bzMwhM-3000x3000.png)]]

 ---

 This issue was originally reported in
 https://github.com/WordPress/twentynineteen/issues/696
 This patch ports over changes from
 https://github.com/WordPress/twentynineteen/pull/702

 props: kjellr, joen, allancole

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45716>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list