From 86abdf2fd37b8ccc712df91a96691cf1c4ca1008 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 25 Jan 2024 08:45:42 -0800
Subject: feat: more fluid skeleton ui

---
 src/routes/schedule/+page.svelte | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

(limited to 'src/routes/schedule/+page.svelte')

diff --git a/src/routes/schedule/+page.svelte b/src/routes/schedule/+page.svelte
index 3b27db12..44a4fd2d 100644
--- a/src/routes/schedule/+page.svelte
+++ b/src/routes/schedule/+page.svelte
@@ -9,7 +9,6 @@
 	import { season } from '$lib/Media/Anime/season';
 	import HeadTitle from '$lib/Home/HeadTitle.svelte';
 	import Crunchyroll from '$lib/Schedule/Crunchyroll.svelte';
-	import Loading from '$lib/Utility/Loading.svelte';
 	import '$lib/Schedule/container.css';
 	import Days from '$lib/Schedule/Days.svelte';
 	import settings from '$stores/settings';
@@ -62,18 +61,10 @@
 <p />
 
 {#await subsPleasePromise}
-	<!-- <Loading type="subtitle release data" percent={49.5} />
-
-	<p /> -->
-
 	<Skeleton grid={true} count={7} height="15em" width="49.5%" />
 {:then subsPlease}
 	{#if subsPlease}
 		{#await scheduledMediaPromise}
-			<!-- <Loading type="anime schedule" percent={82.5} />
-
-			<p /> -->
-
 			<Skeleton grid={true} count={7} height="15em" width="49.5%" />
 		{:then scheduledMedia}
 			{#if scheduledMedia}
@@ -89,13 +80,13 @@
 					<Days {subsPlease} {scheduledMedia} {forceListMode} />
 				</div>
 			{:else}
-				<Loading type="anime schedule" percent={66} />
+				<Skeleton grid={true} count={7} height="15em" width="49.5%" />
 			{/if}
 		{:catch}
 			<Error type="Media" loginSessionError={false} card list={false} />
 		{/await}
 	{:else}
-		<Loading type="subtitle release data" percent={33} />
+		<Skeleton grid={true} count={7} height="15em" width="49.5%" />
 	{/if}
 {:catch}
 	<Error type="Schedule" loginSessionError={false} card list={false} />
-- 
cgit v1.2.3

