From b562c6a182468adc0e50b762c0cc48b8e03d8454 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Sun, 25 Aug 2024 09:00:02 +1000 Subject: [PATCH] examples: fix svelte auto-refetching styling --- examples/svelte/auto-refetching/src/routes/+page.svelte | 4 ++-- .../svelte/auto-refetching/src/routes/api/data/+server.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/svelte/auto-refetching/src/routes/+page.svelte b/examples/svelte/auto-refetching/src/routes/+page.svelte index e9d5c21d5d..ab5e83e17f 100644 --- a/examples/svelte/auto-refetching/src/routes/+page.svelte +++ b/examples/svelte/auto-refetching/src/routes/+page.svelte @@ -50,9 +50,9 @@ width:.75rem; height:.75rem; background: {$todos.isFetching ? 'green' : 'transparent'}; - transition:: {!$todos.isFetching ? 'all .3s ease' : 'none'}; + transition: {!$todos.isFetching ? 'all .3s ease' : 'none'}; border-radius: 100%; - transform: 'scale(2)" + transform: scale(1.5)" > diff --git a/examples/svelte/auto-refetching/src/routes/api/data/+server.ts b/examples/svelte/auto-refetching/src/routes/api/data/+server.ts index cc192e37ee..42e78243f2 100644 --- a/examples/svelte/auto-refetching/src/routes/api/data/+server.ts +++ b/examples/svelte/auto-refetching/src/routes/api/data/+server.ts @@ -15,6 +15,6 @@ export const GET: RequestHandler = async ({ url }) => { } else if (clear) { list.items = [] } - await new Promise((r) => setTimeout(r, 1000)) + await new Promise((r) => setTimeout(r, 200)) return json(list, { status: 200 }) }