Default all product images to "cropped" and actual image width (https://github.com/woocommerce/woocommerce-blocks/pull/5551)
* Default imageSizing for the all products block to 'cropped' * set max-width:100%, width: auto on product grid images
This commit is contained in:
parent
d2ef7143d9
commit
a8d979c47b
|
@ -22,7 +22,8 @@
|
|||
|
||||
img {
|
||||
height: auto;
|
||||
width: 100%;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
|
||||
&[hidden] {
|
||||
display: none;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* The default layout built from the default template.
|
||||
*/
|
||||
export const DEFAULT_PRODUCT_LIST_LAYOUT = [
|
||||
[ 'woocommerce/product-image' ],
|
||||
[ 'woocommerce/product-image', { imageSizing: 'cropped' } ],
|
||||
[ 'woocommerce/product-title' ],
|
||||
[ 'woocommerce/product-price' ],
|
||||
[ 'woocommerce/product-rating' ],
|
||||
|
|
Loading…
Reference in New Issue