From e89f2a947e264f90bd083a810a1a371677e4c84e Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Sat, 31 May 2025 16:20:24 -0400 Subject: [PATCH] feat: enhance image navigation in adventure view with improved controls and indicators --- .../src/routes/adventures/[id]/+page.svelte | 58 ++++++++++++++++--- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/frontend/src/routes/adventures/[id]/+page.svelte b/frontend/src/routes/adventures/[id]/+page.svelte index b055d43..6c01956 100644 --- a/frontend/src/routes/adventures/[id]/+page.svelte +++ b/frontend/src/routes/adventures/[id]/+page.svelte @@ -224,17 +224,59 @@ {#if adventure.images.length > 1} -
- {#each adventure.images as _, i} +
+ +
- {/each} + +
+ {currentSlide + 1} / {adventure.images.length} +
+ + +
+ + + {#if adventure.images.length <= 12} + +
+ {#each adventure.images as _, i} + + {/each} +
+ {:else} + +
+
+
+
+ {/if}
{/if}