From 4363f56c234d2d2c02981fadabfb36e13dff658c Mon Sep 17 00:00:00 2001 From: Mihkel Martin Kasterpalu Date: Wed, 12 Feb 2025 03:26:47 +0200 Subject: [PATCH] Add Skeleton to rahvatarkus while loading instead of text --- src/routes/vinge/rahvatarkus/+page.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/vinge/rahvatarkus/+page.svelte b/src/routes/vinge/rahvatarkus/+page.svelte index e728518..efedf39 100644 --- a/src/routes/vinge/rahvatarkus/+page.svelte +++ b/src/routes/vinge/rahvatarkus/+page.svelte @@ -5,6 +5,7 @@ import * as Accordion from '$lib/components/ui/accordion/index.js'; import * as Pagination from '$lib/components/ui/pagination/index.js'; + import { Skeleton } from '$lib/components/ui/skeleton/index.js'; import { goto } from '$app/navigation'; import ChevronRight from 'lucide-svelte/icons/chevron-right'; @@ -24,7 +25,12 @@
{#await data.streamed.archive} -

loading

+
+ {#each { length: 5 }} + + {/each} + +
{:then archive} {#each archive.data as question}