[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 07:41:16 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         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 The default size for the avatar block is 96. But on the front this
 displays as 49.5px.
 The size is overwritten by the theme CSS:


 {{{
 .avatar {
         border-radius: 100%;
         display: block;
         height: calc(2.25* 1rem);
         min-height: inherit;
         width: calc(2.25* 1rem);
 }
 }}}

 When the user changes the size in the block option in the settings panel,
 it is not reflected on the front.


 === Environment
 - WordPress: 6.4.3, also tested on 6.5 Beta
 - PHP: 8.1.23
 - Server: nginx/1.16.0
 - Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
 - Browser: Chrome 122.0.0.0
 - OS: macOS
 - Theme: Twenty Nineteen 2.7
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.1.0

 === Steps to Reproduce
 1. Add an avatar block.
 2. Duplicate the block and adjust the size to be larger than the default.
 3. Duplicate the block again and adjust the size to be smaller than the
 default.


 === Expected Results
 1.  ✅ Avatar size should match the size set in the block control

 === Actual Results
 1.  ❌  Avatar size does not match the size set in the block control

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


More information about the wp-trac mailing list