UX: add progress bar for uploading images

This commit is contained in:
Pieter Vander Vennet 2025-05-07 16:31:00 +02:00
parent bb33c43950
commit 221b572a1f
8 changed files with 45 additions and 18 deletions

View file

@ -1,5 +1,4 @@
<script lang="ts">
import { twMerge } from "tailwind-merge"
import Loading from "../../assets/svg/Loading.svelte"
export let cls: string = "flex p-1 pl-2"
@ -9,7 +8,7 @@
<div class="h-6 w-6 min-w-6 shrink-0 animate-spin self-center">
<Loading />
</div>
<div class="ml-2">
<div class="ml-2 w-full">
<slot />
</div>
</div>