-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Image behavior in ImageGallery (#2090)
## What's the purpose of this pull request? As related to #2059, we need more customization in our ImageGallery so we can show the image properly, with a good image position. We tried to use Aspect Ratio for that customization, but it was breaking our layout and the property `object-fit` can fix that problem properly. Before: <img width="1792" alt="Screenshot 2023-11-06 at 9 49 27 PM" src="https://github.com/vtex/faststore/assets/42946693/97d137a4-80ae-448e-8ef8-618ae6675d2b"> After: <img width="1792" alt="Screenshot 2023-11-06 at 9 48 41 PM" src="https://github.com/vtex/faststore/assets/42946693/b3b793b9-5f28-4bcc-9d87-03a27762d689"> ## How it works? ~This PR makes the aspect ratio customizable by CMS.~ This PR changes the ImageGallery object-fit property from `cover` to `contain`. ## How to test it? https://sfj-8088db8--starter.preview.vtex.app/apple-magic-mouse-99988212/p ### Starters Deploy Preview https://sfj-8088db8--starter.preview.vtex.app/ ## References <!--- Spread the knowledge: is there any content you used to create this PR that is worth sharing? ---> <!--- Extra tip: adding references to related issues or mentioning people important to this PR may be good for the documentation and reviewing process --->
- Loading branch information
Gabriel Antiqueira
authored
Nov 9, 2023
1 parent
65a601d
commit e0b92cc
Showing
7 changed files
with
3 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0b92cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
faststore-site – ./
faststore-site-git-main-faststore.vercel.app
faststore-site-faststore.vercel.app
faststore.dev
faststore-site.vercel.app
www.faststore.dev