Minor styling update

This commit is contained in:
ZXY101
2023-09-28 07:55:16 +02:00
parent 9579c43a14
commit d190264c86
3 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
<script lang="ts">
import { catalog } from '$lib/catalog';
import CatalogItem from './CatalogItem.svelte';
import Loader from './Loader.svelte';
</script>
{#if $catalog}
@@ -18,5 +19,5 @@
</div>
{/if}
{:else}
<p>Loading...</p>
<Loader>Fetching catalog...</Loader>
{/if}

View File

@@ -0,0 +1,8 @@
<script lang="ts">
import { Spinner } from 'flowbite-svelte';
</script>
<div class="flex flex-col gap-5 items-center justify-center h-full p-10">
<Spinner size={'8'} />
<slot>Loading...</slot>
</div>

View File

@@ -6,6 +6,6 @@
<title>Mokuro</title>
</svelte:head>
<div class="p-2">
<div class="p-2 h-[90svh]">
<Catalog />
</div>