Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
882 stars 351 forks source link

Argent: Portfolio Galleries distort wide images #228

Open ghost opened 6 years ago

ghost commented 6 years ago

Steps to replicate

Argent has a custom gallery is uses when you add a gallery to portfolio projects.

When you have extra wide (landscape as heck!) images in said gallery, they distort a bit on smaller viewports.

Here it is, properly sized on desktop: screen shot 2018-08-14 at 3 39 57 pm

Here it is at the next smaller breakpoint, distored: screen shot 2018-08-14 at 3 40 43 pm

Be sure to use extra wide images, as ones closer to square do not exhibit this issue!

Result

Images that are wide enough to be distorted by max-width will be distorted on mobile/tablet views.

Expected

Images to gracefully resize/crop like they do when they are closer to square.

alaczek commented 6 years ago

There's a max-width set on those gallery images on mobile, but it results in squished images in this case. I had a quick look, and removing the max-width should fix it. The downside is, those uber-wide images won't fit on the screen on mobile, but at least they won't be distorted.

github-actions[bot] commented 2 years ago

As a part of this repository’s maintenance, this issue is being marked as stale due to inactivity. Please feel free to comment on it in case we missed something.