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
+7 -7
View File
@@ -120,7 +120,7 @@
class="fixed inset-0 bg-black/60 z-40 backdrop-blur-sm"
on:click={() => dispatch('saved', { title, description })}
role="presentation"
/>
></div>
<!-- Drawer -->
<aside class="fixed top-0 right-0 h-full w-full max-w-md bg-zinc-950 border-l border-zinc-800 z-50 flex flex-col shadow-2xl">
@@ -139,7 +139,7 @@
{#if loading}
<div class="space-y-3 animate-pulse">
{#each Array(4) as _}
<div class="h-9 rounded bg-zinc-800" />
<div class="h-9 rounded bg-zinc-800"></div>
{/each}
</div>
{:else if loadError}
@@ -191,21 +191,21 @@
rows={6}
placeholder="Write about this activity…"
class="w-full px-3 py-2 bg-zinc-900 border border-zinc-700 rounded-lg text-sm text-white placeholder-zinc-600 outline-none focus:border-blue-500 transition-colors resize-y"
/>
></textarea>
</div>
<!-- Images -->
<div class="mb-4">
<p class="text-xs text-zinc-500 mb-2">Images</p>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="border border-dashed border-zinc-700 rounded-lg px-4 py-3 text-center text-xs text-zinc-500 cursor-pointer hover:border-zinc-500 hover:text-zinc-300 transition-colors"
<button
type="button"
class="w-full border border-dashed border-zinc-700 rounded-lg px-4 py-3 text-center text-xs text-zinc-500 cursor-pointer hover:border-zinc-500 hover:text-zinc-300 transition-colors"
on:click={() => fileInput.click()}
on:dragover|preventDefault
on:drop|preventDefault={e => e.dataTransfer?.files && uploadImages(e.dataTransfer.files)}
>
{uploading ? 'Uploading…' : 'Drop images or click to upload'}
</div>
</button>
<input bind:this={fileInput} type="file" accept="image/*" multiple class="hidden"
on:change={e => e.currentTarget.files && uploadImages(e.currentTarget.files)} />
{#if images.length}