Skip to content

Commit

Permalink
Merge pull request #65 from JBLach/img-modal-fix
Browse files Browse the repository at this point in the history
img modal fix
  • Loading branch information
jolelievre authored Oct 19, 2022
2 parents 7184df6 + dc113cb commit a29e863
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions _dev/css/components/products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,14 @@

.modal-body {
display: flex;
margin-left: -30%;
margin-left: -35%;

.product-cover-modal {
background: $white;
@include media-breakpoint-down(md) {
max-width: 100%;
height: auto;
}
}

.image-caption {
Expand Down Expand Up @@ -371,7 +375,9 @@
}

.product-images {
margin-left: $extra-large-space;
@include media-breakpoint-up(lg) {
margin-left: $extra-large-space;
}

img {
width: 9.25rem;
Expand Down
2 changes: 1 addition & 1 deletion templates/catalog/_partials/product-images-modal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<figure>
{if $product.default_image}
<img
class="js-modal-product-cover product-cover-modal img-fluid"
class="js-modal-product-cover product-cover-modal"
width="{$product.default_image.bySize.large_default.width}"
src="{$product.default_image.bySize.large_default.url}"
{if !empty($product.default_image.legend)}
Expand Down

0 comments on commit a29e863

Please sign in to comment.