📝 Added note why the image-uploader is loading so long

This commit is contained in:
Mawoka
2022-06-23 21:47:40 +02:00
parent d40274f256
commit 670d0c33e0
2 changed files with 50 additions and 1 deletions
+17 -1
View File
@@ -5,6 +5,15 @@
import Spinner from '../Spinner.svelte';
import { fade } from 'svelte/transition';
import { mint } from '$lib/hashcash';
import { createTippy } from 'svelte-tippy';
import 'tippy.js/animations/perspective-subtle.css';
import 'tippy.js/dist/tippy.css';
const tippy = createTippy({
arrow: true,
animation: 'perspective-subtle',
placement: 'top'
});
export let data: EditorData;
export let selected_question: number;
@@ -87,7 +96,14 @@
/>
</div>
{:else if pow_data === undefined}
<Spinner />
<a
href="/docs/pow"
target="_blank"
use:tippy={{ content: "Click to learn why it's loading so long." }}
class="cursor-help"
>
<Spinner />
</a>
{:else}
{#await import('$lib/editor/uploader.svelte')}
<Spinner />