title | issue | author | author_email |
---|---|---|---|
Gallery image aspect ratio zoom config (tall images fix) and magnifier over gallery config |
NEXT-14809 |
Robert Rypula |
- Added two parameters
magnifierOverGallery
andkeepAspectRatioOnZoom
toadministration/src/module/sw-cms/elements/image-gallery/index.js
. - Added default value preset to initConfig method at
administration/src/module/sw-cms/elements/image-gallery/config/index.js
. - Added block with new checkboxes at
administration\src\module\sw-cms\elements\image-gallery\config\sw-cms-el-config-image-gallery.html.twig
. - Added new snippets related to checkboxes to
administration\src\module\sw-cms\snippet\*.json
- Added new parameter
keepAspectRatioOnZoom
to the pluginstorefront\src\plugin\magnifier\magnifier.plugin.js
- Changed methods
_setZoomImageSize(...)
,calculateZoomImageBackgroundPosition(...)
and_getOverlaySize(....)
to include newkeepAspectRatioOnZoom
parameter atstorefront\src\plugin\magnifier\magnifier.plugin.js
- Changed styles - due to bug the overlay was hidden even the magnifier area was not the gallery at
storefront\src\scss\component\_cms-element.scss
- Added logic that consumes parameters from the administration and passes them to the magnifier plugin at
storefront\element\cms-element-image-gallery.html.twig