fixed some warnings

This commit is contained in:
Davide Scaini
2026-03-29 22:17:01 +02:00
parent 4537273de9
commit 9bd065f354
4 changed files with 24 additions and 18 deletions
+12 -6
View File
@@ -108,12 +108,18 @@
></button>
{/if}
<img
src={imageBase + galleryImages[lightboxIndex]}
alt={galleryImages[lightboxIndex]}
class="max-h-[90vh] max-w-[90vw] rounded-lg shadow-2xl object-contain"
<button
type="button"
class="contents"
on:click|stopPropagation
/>
aria-label="Image {lightboxIndex + 1} of {galleryImages.length}"
>
<img
src={imageBase + galleryImages[lightboxIndex]}
alt={galleryImages[lightboxIndex]}
class="max-h-[90vh] max-w-[90vw] rounded-lg shadow-2xl object-contain"
/>
</button>
<!-- Next -->
{#if galleryImages.length > 1}
@@ -241,7 +247,7 @@
<ActivityCharts timeseries={detail.timeseries} bind:hoveredIdx {athlete} />
</div>
{:else if !detail}
<div class="bg-zinc-900 rounded-xl border border-zinc-800 p-4 h-32 animate-pulse" />
<div class="bg-zinc-900 rounded-xl border border-zinc-800 p-4 h-32 animate-pulse"></div>
{/if}
<!-- Laps -->