refactor(bulma): use generic gallery to avoid having multiple same ids

This commit is contained in:
2025-05-18 14:23:09 +02:00
parent 17dbe85219
commit bbc8732112
4 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@
IMAGES
*****/
#my-gallery .main-photo img {
.gallery .main-photo img {
width: 100%;
height: 300px;
object-fit: cover;

View File

@@ -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'),
});