diff --git a/src/app.css b/src/app.css index 36b9ef7..0b8c6dd 100644 --- a/src/app.css +++ b/src/app.css @@ -14,6 +14,10 @@ a { @apply bg-zinc-700 bg-opacity-75; } +.placeholder-text { + @apply bg-zinc-700 bg-opacity-40 animate-pulse text-transparent rounded-lg select-none; +} + .selectable { @apply focus-visible:outline outline-2 outline-[#f0cd6dc2] outline-offset-2; } diff --git a/src/lib/components/Poster/Poster.svelte b/src/lib/components/Poster/Poster.svelte index f989bc9..69fc867 100644 --- a/src/lib/components/Poster/Poster.svelte +++ b/src/lib/components/Poster/Poster.svelte @@ -18,7 +18,7 @@ export let rating: number | undefined = undefined; export let progress = 0; - export let size: 'dynamic' | 'md' | 'lg' = 'md'; + export let size: 'dynamic' | 'md' | 'lg' | 'sm' = 'md'; export let orientation: 'portrait' | 'landscape' = 'landscape'; @@ -29,6 +29,8 @@ { 'aspect-video': orientation === 'landscape', 'aspect-[2/3]': orientation === 'portrait', + 'w-32': size === 'sm' && orientation === 'portrait', + 'h-32': size === 'sm' && orientation === 'landscape', 'w-44': size === 'md' && orientation === 'portrait', 'h-44': size === 'md' && orientation === 'landscape', 'w-60': size === 'lg' && orientation === 'portrait', diff --git a/src/routes/library/+page.svelte b/src/routes/library/+page.svelte index 6713810..4aa3810 100644 --- a/src/routes/library/+page.svelte +++ b/src/routes/library/+page.svelte @@ -17,6 +17,7 @@ import { fade } from 'svelte/transition'; import LibraryItems from './LibraryItems.svelte'; import { capitalize } from '$lib/utils'; + import LazyImg from '$lib/components/LazyImg.svelte'; let openNextUpTab: 'downloading' | 'nextUp' = 'downloading'; let noItems = false; @@ -84,16 +85,29 @@ }} out:fade|global={{ duration: $settings.animationDuration }} > - {#await showcasePromise then showcase} -