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'),
|
||||
});
|
||||
|
@@ -38,7 +38,7 @@
|
||||
<div class="column block">
|
||||
<div class="card">
|
||||
<div class="grid card-content">
|
||||
<div class="cell" id="my-gallery">
|
||||
<div class="cell gallery">
|
||||
{% for photo in adoption_notice.get_photos %}
|
||||
<a href="{{ MEDIA_URL }}{{ photo.image }}"
|
||||
data-pswp-width="{{ photo.image.width }}"
|
||||
|
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="my-gallery">
|
||||
<div class="gallery">
|
||||
{% with photo=animal.get_photos.0 %}
|
||||
<div class="main-photo">
|
||||
<a href="{{ MEDIA_URL }}{{ photo.image }}"
|
||||
|
Reference in New Issue
Block a user