This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Description
Describe the bug
When #11665 is merged, the thumbnails will no longer be always cropped.
The thumbnails should also follow the Crop images to fit setting value.
To reproduce
Steps to reproduce the behavior:
- With a block theme, open
Appearance > Editor.
- Open
Templates > Single Product.
- Select
Convert to Blocks if you are using the Classic Templates.
- Add the
Product Gallery block.
- Ensure the Thumbnails are enabled.
- Change the
Crop images to fit value, notice the thumbnails are never cropped.
Expected behavior
When Crop images to fit is enabled, the thumbnails should be cropped to square.
When Crop images to fit is disabled the thumbnails should not be cropped to square.
Screenshots
