Skip to content

Commit

Permalink
Merge pull request #2482 from patzick/feature/product-gallery-placeho…
Browse files Browse the repository at this point in the history
…lder

add gallery placeholder
  • Loading branch information
patzick committed Feb 22, 2019
2 parents 4f3ad03 + bb1baea commit 392604e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve images loading on category page, corrected alt view and blinking problem - @patzick (#2465)
- Improve tsconfig for better IDE paths support - @patzick, @filrak (#2474)
- fix breadcrumbs changing too early - @filrak (#2469)
- improved product gallery load view, shows correct image on reload - @patzick (#2481)
- improved product gallery load view, shows correct image on reload - @patzick (#2481, #2382)

### Deprecated / Removed
- `@vue-storefront/store` package deprecated - @filrak
Expand Down
7 changes: 6 additions & 1 deletion src/themes/default/components/core/ProductGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
:current-slide="currentSlide"
:product-name="product.name"
:gallery="gallery"
@close="toggleZoom"/>
@close="toggleZoom"
/>
<no-ssr>
<product-gallery-carousel
v-if="showProductGalleryCarousel"
Expand Down Expand Up @@ -92,6 +93,10 @@ export default {
.media-gallery {
text-align: center;
height: 100%;
background-image: url('/assets/placeholder.svg');
background-repeat: no-repeat;
background-position: center;
background-size: 40% auto;
}
.offline-image {
width: 100%;
Expand Down

0 comments on commit 392604e

Please sign in to comment.