Skip to content

Commit

Permalink
fix(storefront): BCTHEME-87 Product images squashed in Category view …
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 authored and sacr3dc0w committed Jan 5, 2021
1 parent 7254a9a commit dcdc434
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Product images squashed in Category view in AMP. [#1921](https://github.com/bigcommerce/cornerstone/pull/1921)
- Fixed misaligned tooltip for required product option. [#1915](https://github.com/bigcommerce/cornerstone/pull/1915)
- Fixed tooltip overlaying by facebook button. [#1914](https://github.com/bigcommerce/cornerstone/pull/1914)
- Cornerstone - Text hover color does not change when Dropdown menu display mode is set to 'Alternative'. [#1918](https://github.com/bigcommerce/cornerstone/pull/1918)
Expand Down
9 changes: 9 additions & 0 deletions templates/components/amp/css/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@
position: relative;
}

.card-figure amp-img img {
height: auto;
min-height: auto;
max-height: 100%;
width: auto;
min-width: auto;
max-width: 100%;
}

.card-image {
max-width: 100%;
height: auto;
Expand Down

0 comments on commit dcdc434

Please sign in to comment.