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

Product Gallery Thumbnails: Fix thumbnails cropping #11699

@danieldudzic

Description

@danieldudzic

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:

  1. With a block theme, open Appearance > Editor.
  2. Open Templates > Single Product.
  3. Select Convert to Blocks if you are using the Classic Templates.
  4. Add the Product Gallery block.
  5. Ensure the Thumbnails are enabled.
  6. 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

Moto_Guzzi_v7_–_newproductgallery

Metadata

Metadata

Assignees

Labels

type: bugThe issue/PR concerns a confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions