Skip to content

Commit

Permalink
Carousel, fix dark + contain
Browse files Browse the repository at this point in the history
  • Loading branch information
murdercode committed Dec 22, 2023
1 parent f5b1d9b commit df7049f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/carousel.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<ul class="splide__list">
@foreach (json_decode($images) as $index => $image)
<li class="splide__slide">
<span class="splide_pag absolute top-0 right-0 bg-white px-2">Immagine {{ $index + 1 }} di {{ $images->count() }}</span>
<span class="splide_pag absolute top-0 right-0 bg-white/90 dark:bg-black/90 px-2">Immagine {{ $index + 1 }} di {{ $images->count() }}</span>
<img src="{{ asset('storage/' . $image->src )}}?width=896"
alt="{{ $image->title }}"
class="w-full h-full object-cover glightbox"
class="w-full h-full object-contain glightbox"
data-glightbox="{{ addslashes('carousel-' . $image->title) }}"
loading="lazy"
title="Clicca per vedere l'immagine originale
Expand Down

0 comments on commit df7049f

Please sign in to comment.