Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
YSHOP2-609: As a seller, I should be guided on the images sizes (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliHMIMS authored Jun 6, 2023
1 parent 18eb2d7 commit bda6528
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions assets/featured-collections.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
aspect-ratio: 4/5;
overflow: hidden;
transition: 0.3s ease-in-out;
aspect-ratio: 1/1;
}
.yc-featured-collections .collections-list .collection-block .collection-details, .yc-featured-collections .collections-list .collection-block .collection-thumbnail img {
transition: all 0.3s ease-in-out;
Expand All @@ -52,6 +53,7 @@
.yc-featured-collections .collections-list .collection-block .collection-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.yc-featured-collections .collections-list .collection-block .collection-details {
transition: 0.3s ease-in-out;
Expand Down
3 changes: 2 additions & 1 deletion sections/featured-collections.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
{
"type": "category",
"id": "category",
"label": "Category"
"label": "Category",
"info": "To ensure your images look great and load quickly, use a size of \"350px x 350px\" (1:1 aspect ratio)."
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion sections/featured-product-slider.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@
{
"type": "product",
"id": "product",
"label": "Product"
"label": "Product",
"info": "To ensure your images look great and load quickly, use a size of \"256px x 256px\" (1:1 aspect ratio)."
},
{
"type": "text",
Expand Down
3 changes: 2 additions & 1 deletion sections/featured-products.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
{
"type": "product",
"id": "product",
"label": "Product"
"label": "Product",
"info": "To ensure your images look great and load quickly, use a size of \"256px x 256px\" (1:1 aspect ratio)."
},
{
"type": "text",
Expand Down
2 changes: 2 additions & 0 deletions styles/featured-collections.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
aspect-ratio: 4/5;
overflow: hidden;
transition: 0.3s ease-in-out;
aspect-ratio: 1/1;


.collection-details, .collection-thumbnail img {
Expand All @@ -60,6 +61,7 @@
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}

Expand Down

0 comments on commit bda6528

Please sign in to comment.