From 8d43215daafe1f45511c602340e6a824844e7efe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:07:19 -0800 Subject: [PATCH] Cherry pick 52431 into release/9.4 (#52541) * [WordPress 6.7] Fix image aspect ratio in product grid blocks (#52431) * Override user agent styling in Chrome * Add changelog * Change the approach * Change the approach one more time * Prep for cherry pick 52431 --------- Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com> Co-authored-by: WooCommerce Bot Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --- plugins/woocommerce-blocks/assets/css/style.scss | 2 +- plugins/woocommerce/readme.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/assets/css/style.scss b/plugins/woocommerce-blocks/assets/css/style.scss index 5fdf23c1f0e..d01784036e4 100644 --- a/plugins/woocommerce-blocks/assets/css/style.scss +++ b/plugins/woocommerce-blocks/assets/css/style.scss @@ -21,7 +21,7 @@ body.wc-block-product-gallery-modal-open { img { height: auto; - width: auto; + width: 100%; max-width: 100%; &[hidden] { diff --git a/plugins/woocommerce/readme.txt b/plugins/woocommerce/readme.txt index 5baa073b463..67c9b61e9e8 100644 --- a/plugins/woocommerce/readme.txt +++ b/plugins/woocommerce/readme.txt @@ -173,6 +173,7 @@ WooCommerce comes with some sample data you can use to see how products look; im **WooCommerce** +* Fix - Product grid blocks: fix Image aspect ratio with WordPress 6.7 [#52431](https://github.com/woocommerce/woocommerce/pull/52431) * Fix - Product Image Gallery: Render placeholder in Editor in WordPress 6.7 [#52432](https://github.com/woocommerce/woocommerce/pull/52432) * Fix - Support situations in which (WooCommerce) translations are inadvertently loaded too early. [#52199](https://github.com/woocommerce/woocommerce/pull/52199) * Fix - Add a retry mechanism to the query to obtain the SKU lock for product creation through the API. [#51735](https://github.com/woocommerce/woocommerce/pull/51735)