Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 799 forks source link

Related posts block thumbnails appears slightly distorted in some viewport widths #31269

Open ariel-maidana opened 1 year ago

ariel-maidana commented 1 year ago

Quick summary

The featured image block crops the images automatically to be 350px wide by 200px tall (1.75:1 ratio).

However, in some specific viewport widths the images appear slightly distorted:

https://github.com/Automattic/wp-calypso/assets/4965723/b0618fc5-5840-4027-9e88-9cce82374379

Steps to reproduce

  1. Activate Payton.
  2. Add a Related Posts block to the Single template.
  3. Visit a post.
  4. Use the browser developer tools to see the mobile view. Set it to responsive.
  5. Adjust the viewport width until you see a distortion in the thumbnails.

What you expected to happen

The image should not be distorted regarding of the screen size.

What actually happened

Thumbnails are slightly distorted in some viewport widhts.

Impact

One

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

Context: 6363582-zd-woothemes

Workaround (tested in Payton):

/ Set height for featured images in Related Posts block /

.jp-related-posts-i2__post-img-link img { height:100%; }

github-actions[bot] commented 1 year ago

Support References

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

cuemarie commented 1 year ago

Triaging in process - related posts block takes a bit to update once set up. Will return in a day to complete scrubbing

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Payton

https://github.com/Automattic/wp-calypso/assets/27249804/25d2ffb4-c121-4a29-9ce3-42807766d0e7

Twenty Twenty Three

https://github.com/Automattic/wp-calypso/assets/27249804/49c014e4-4333-4bba-85fe-a5dfa2ff7a7e

📌 ACTIONS

github-actions[bot] commented 11 months ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.