Skip to content

Commit

Permalink
feat: hide navigation btns for single image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mocca101 committed Feb 26, 2024
1 parent e537b19 commit 16f8cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/entity-images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const props = defineProps<{

<template>
<Carousel class="mx-14">
<CarouselPrevious />
<CarouselPrevious v-if="$props.images.length > 2" />
<CarouselContent>
<CarouselItem v-for="(image, index) of props.images" :key="index" class="h-full">
<Card class="pb-3">
Expand All @@ -19,6 +19,6 @@ const props = defineProps<{
</Card>
</CarouselItem>
</CarouselContent>
<CarouselNext />
<CarouselNext v-if="$props.images.length > 2" />
</Carousel>
</template>

0 comments on commit 16f8cb6

Please sign in to comment.