Skip to content

Commit a90eb49

Browse files
committed
feat: fix image size
1 parent 085a095 commit a90eb49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gql/queries/getProduct.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ query getProduct($slug: ID!, $sku: String!) {
1313
galleryImages {
1414
nodes {
1515
id
16-
sourceUrl
16+
sourceUrl(size: WOOCOMMERCE_THUMBNAIL)
1717
}
1818
}
1919
productTypes {
@@ -22,7 +22,7 @@ query getProduct($slug: ID!, $sku: String!) {
2222
nodes {
2323
slug
2424
image {
25-
sourceUrl(size: LARGE)
25+
sourceUrl(size: WOOCOMMERCE_THUMBNAIL)
2626
}
2727
allPaColor {
2828
nodes {

gql/queries/getProducts.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ query getProducts($after: String, $search: String, $category: String, $order: Or
1515
}
1616
image {
1717
id
18-
sourceUrl(size: LARGE)
18+
sourceUrl(size: WOOCOMMERCE_THUMBNAIL)
1919
altText
2020
}
2121
galleryImages {
2222
nodes {
23-
sourceUrl(size: LARGE)
23+
sourceUrl(size: WOOCOMMERCE_THUMBNAIL)
2424
}
2525
}
2626
variations(where: { orderby: { field: NAME, order: DESC } }) {

0 commit comments

Comments
 (0)