diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index d7ccd618..8daf7516 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -725,7 +725,7 @@ window.baguetteBox = (function () { if (options.buttons === 'auto' && ('ontouchstart' in window || currentGallery.length === 1)) options.buttons = false; - btnPrev.style.display = btnNext.style.display = (options.buttons ? '' : 'none'); + QS('#bbox-next .btn').style.display = QS('#bbox-prev .btn').style.display = (options.buttons ? '' : 'none'); } function showOverlay(chosenImageIndex) {