refactor(bulma): use generic gallery to avoid having multiple same ids
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
IMAGES
|
||||
*****/
|
||||
|
||||
#my-gallery .main-photo img {
|
||||
.gallery .main-photo img {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
object-fit: cover;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import PhotoSwipeLightbox from 'https://unpkg.com/photoswipe/dist/photoswipe-lightbox.esm.js';
|
||||
|
||||
const lightbox = new PhotoSwipeLightbox({
|
||||
gallery: '#my-gallery',
|
||||
gallery: '.gallery',
|
||||
children: 'a',
|
||||
pswpModule: () => import('https://unpkg.com/photoswipe'),
|
||||
});
|
||||
|
Reference in New Issue
Block a user