refactor: simplify media preview navigation by replacing button list with current index display for improved user experience
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (8.3) (push) Waiting to run
tests / ci (8.4) (push) Waiting to run
tests / ci (8.5) (push) Waiting to run

This commit is contained in:
Yoga Pangestu 2026-07-07 12:42:22 +07:00
parent f1f9162304
commit f105d2cb3f

View File

@ -147,11 +147,8 @@ function handleTouchEnd(e: TouchEvent) {
Sebelumnya
</Button>
<div class="flex flex-wrap justify-center gap-1.5">
<button v-for="(_, idx) in allUrls" :key="idx" type="button"
class="size-2 rounded-full transition-all duration-200"
:class="idx === currentIndex ? 'bg-primary w-4' : 'bg-muted-foreground/30'"
@click="activeUrl = allUrls[idx]; emit('update:url', allUrls[idx]);" />
<div class="text-sm text-muted-foreground font-medium select-none">
{{ currentIndex + 1 }} / {{ allUrls.length }}
</div>
<Button type="button" variant="outline" size="sm" class="flex items-center gap-1 shrink-0"