Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Row Block with image: Inconsistencies between editor and published content #73054

Open filipanoscampos opened 1 year ago

filipanoscampos commented 1 year ago

Quick summary

When using a row block with an image and text, for example, the image preview doesn't match the result in the live site, making it difficult to edit and make decisions.

Steps to reproduce

  1. Add a row block to a page or post, with an image and some text;
  2. Make some changes to the image like resizing it
  3. Notice how, once published, the preview in the editor doesn't match the live site
  4. If multiple images are added to a row, i the editor their sizes show as varying, despite them showing correctly in the front end.

What you expected to happen

The editor to match the published page or post.

What actually happened

There were significant differences. Here is an example from a user's site The image in the editor: Screenshot 2023-02-07 at 16 23 28

On the published page: Screenshot 2023-02-07 at 16 23 33

And the varying sizes: rowimagevariation

Impact

All

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

5924135-zd-woothemes

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

dpasque commented 1 year ago

Opened the image custom sizing not being respected in Gutenberg here: https://github.com/WordPress/gutenberg/issues/48295

This issue can be used used to track other tickets that come up on WPCOM!

Also, bumping priority down to normal given that it's a more narrow use case, and there are alternative ways to get images and text side-by-side.

dpasque commented 1 year ago

@filipanoscampos -- the one part I've been having a hard time reproducing is this part...

If multiple images are added to a row, i the editor their sizes show as varying, despite them showing correctly in the front end.

Could you share more about how you were getting that to happen? Are those images all natively different sizes? Were they resized in some way?

Apart from custom resizings not being correctly supported, I wasn't able to replicate that outcome.

filipanoscampos commented 1 year ago

@dpasque here is a recording of the issue on a simple site with the Blank Canvas theme:

https://user-images.githubusercontent.com/2540430/221347004-7fe12332-de3e-447d-98e5-dd947c581058.mp4