Dynamic post loading (#2)
All checks were successful
Deploy / Deploy (push) Successful in 33s

Dynamically load the posts so that you can scroll a chronologically sorted timeline infinitely

Reviewed-on: #2
Co-authored-by: ari <ariadna@omg.lol>
Co-committed-by: ari <ariadna@omg.lol>
This commit is contained in:
Ariadna 2025-04-22 03:14:37 +00:00 committed by Astra
parent 26aff55dc2
commit cff9eed1a4
6 changed files with 205 additions and 91 deletions

View file

@ -113,7 +113,7 @@
<div id="carouselControls">
<button
id="prevBtn"
on:click={prevImage}
onclick={prevImage}
disabled={currentImageIndex === 0}>←</button
>
<div id="carouselIndicators">
@ -125,7 +125,7 @@
</div>
<button
id="nextBtn"
on:click={nextImage}
onclick={nextImage}
disabled={currentImageIndex === post.imagesCid.length - 1}
>→</button
>