fix: Wrong selector for gallery items
This commit is contained in:
parent
d65016c5d1
commit
8a17baed12
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ tags:
|
|||
{{ block.super -}}
|
||||
<script>
|
||||
const sizeSlider = document.getElementById('slider-size');
|
||||
const galleryItems = document.querySelectorAll('#flex > div');
|
||||
const galleryItems = document.querySelectorAll('.gallery > div');
|
||||
|
||||
// Set the default size
|
||||
const defaultSize = 128; // In pixels
|
||||
|
|
@ -60,6 +60,7 @@ tags:
|
|||
});
|
||||
|
||||
sizeSlider.addEventListener('input', function () {
|
||||
console.debug('Change size');
|
||||
// const newSize = calculateWidth(Number(sizeSlider.value));
|
||||
// galleryItems.forEach(item => {
|
||||
// item.style.width = `${newSize}px`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue