diff --git a/src/lib/components/form/FileDropZone.svelte b/src/lib/components/form/FileDropZone.svelte index 1a18ff2..5be6ecf 100644 --- a/src/lib/components/form/FileDropZone.svelte +++ b/src/lib/components/form/FileDropZone.svelte @@ -1,72 +1,59 @@ - - - - {#if uploadedImageUrl} - + + - {:else} - - - - Upload image or drag and drop - - (Max file size: {MAX_FILE_SIZE_MB}MB) - - + {#if uploadedImageUrl} + + {:else} + + + + Upload image or drag and drop + + + (Max file size: {MAX_FILE_SIZE_MB}MB) + + + {/if} + + + {#if errorMessage} + {errorMessage} {/if} - +
- Upload image or drag and drop - - (Max file size: {MAX_FILE_SIZE_MB}MB) - -
+ Upload image or drag and drop + + + (Max file size: {MAX_FILE_SIZE_MB}MB) + +
{errorMessage}