diff --git a/src/lib/CardList.svelte b/src/lib/CardList.svelte index cc47925..f8770d5 100644 --- a/src/lib/CardList.svelte +++ b/src/lib/CardList.svelte @@ -5,15 +5,17 @@ let canvasRefs = []; -
- {#each Array.from(files) as file, i} -
- -

{file.name}

-
- {canvasRefs[i] && startFileRead(file, canvasRefs[i])} - {/each} -
+{#if files.length !== 0} +
+ {#each Array.from(files) as file, i} +
+ +

{file.name}

+
+ {canvasRefs[i] && startFileRead(file, canvasRefs[i])} + {/each} +
+{/if} diff --git a/src/lib/FileViewer.svelte b/src/lib/FileViewer.svelte index 45e1574..b1b98d0 100644 --- a/src/lib/FileViewer.svelte +++ b/src/lib/FileViewer.svelte @@ -1,5 +1,6 @@