do not show image carousel arrows if only one image is present
This commit is contained in:
@@ -71,20 +71,22 @@
|
|||||||
>
|
>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute top-0 left-2 h-full flex items-center">
|
{#if images.length > 1}
|
||||||
<button
|
<div class="absolute top-0 left-2 h-full flex items-center">
|
||||||
class="backdrop-invert-75 w-10 h-10 rounded-full flex justify-center items-center cursor-pointer z-20"
|
<button
|
||||||
aria-label="previous"
|
class="backdrop-invert-75 w-10 h-10 rounded-full flex justify-center items-center cursor-pointer z-20"
|
||||||
onclick={scrollPrev}><span class="iconify iconify-[heroicons--chevron-left] w-2/5 h-2/5"></span></button
|
aria-label="previous"
|
||||||
>
|
onclick={scrollPrev}><span class="iconify iconify-[heroicons--chevron-left] w-2/5 h-2/5"></span></button
|
||||||
</div>
|
>
|
||||||
<div class="absolute top-0 right-2 h-full flex items-center">
|
</div>
|
||||||
<button
|
<div class="absolute top-0 right-2 h-full flex items-center">
|
||||||
class="backdrop-invert-75 w-10 h-10 rounded-full flex justify-center items-center cursor-pointer z-20"
|
<button
|
||||||
aria-label="next"
|
class="backdrop-invert-75 w-10 h-10 rounded-full flex justify-center items-center cursor-pointer z-20"
|
||||||
onclick={scrollNext}><span class="iconify iconify-[heroicons--chevron-right] w-2/5 h-2/5"></span></button
|
aria-label="next"
|
||||||
>
|
onclick={scrollNext}><span class="iconify iconify-[heroicons--chevron-right] w-2/5 h-2/5"></span></button
|
||||||
</div>
|
>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user