off by one lol

This commit is contained in:
2025-11-14 14:28:11 +13:00
parent d14b15420c
commit 5bbefb5310

View File

@@ -26,7 +26,7 @@ const getImageLink = async (record: any) => {
const currentPosIndicator = document.getElementById('current-pos');
const maxPosIndicator = document.getElementById('max-pos');
maxPosIndicator!.innerText = cap as string
maxPosIndicator!.innerText = (cap + 1) as string
currentPosIndicator!.innerText = (pos + 1) as string
function updatePhoto() {
@@ -71,7 +71,7 @@ const getImageLink = async (record: any) => {
<!-- Hidden element to pass server data to client -->
<div class="hidden" id="carousel-data">{JSON.stringify(photos)}</div>
<div class="flex flex-col self-center">
<div class="flex flex-col max-h-10/12 self-center">
<img id="carousel-img" class="rounded-lg w-full h-full object-cover" src={ pb.files.getURL(photos[0], photos[0].image) } />
</div>
</div>