[wp-trac] [WordPress Trac] #60664: Twenty Nineteen: Avatar block size is different in the editor and front

WordPress Trac noreply at wordpress.org
Fri Mar 1 21:43:45 UTC 2024


#60664: Twenty Nineteen: Avatar block size is different in the editor and front
-------------------------------------------------+-------------------------
 Reporter:  poena                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info has-patch changes-  |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  has-testing-info has-patch => has-testing-info has-patch
     changes-requested


Comment:

 The width and height were added to the `.avatar` class since
 [https://github.com/WordPress/twentynineteen/blame/b604f127c2cae10bd48bbbec0fbbbff2cd31f957/sass/media/_media.scss#L20-L26
 initial commit], and I did not find where those might be necessary.

 However, if any avatar image requires those rules, the Avatar block could
 have its own styles with either `.wp-block-avatar .avatar` or `.wp-block-
 avatar__image` in `_blocks.scss`.

 {{{
 .wp-block-avatar__image {
   width: auto;
   height: auto;
 }
 }}}

 The patch will need to edit an SCSS file, either `_media.scss` to remove
 or `_blocks.scss` to add, and then build the CSS from that.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60664#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list