refac
This commit is contained in:
@@ -195,20 +195,18 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="relative {className}">
|
<div class="relative {className}">
|
||||||
<div class="overflow-y-auto h-full" bind:this={outerContainer}>
|
{#if loading}
|
||||||
<div bind:this={sceneElement} class="w-full">
|
<div class="absolute inset-0 flex items-center justify-center">
|
||||||
{#if loading}
|
<Spinner className="size-5" />
|
||||||
<div class="flex items-center justify-center h-full">
|
|
||||||
<Spinner className="size-5" />
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if error}
|
|
||||||
<div class="flex items-center justify-center h-full text-sm text-red-500">
|
|
||||||
{error}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
{:else if error}
|
||||||
|
<div class="absolute inset-0 flex items-center justify-center text-sm text-red-500">
|
||||||
|
{error}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<div class="overflow-y-auto h-full" bind:this={outerContainer}>
|
||||||
|
<div bind:this={sceneElement} class="w-full"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if !loading && !error && pdfDoc}
|
{#if !loading && !error && pdfDoc}
|
||||||
|
|||||||
Reference in New Issue
Block a user