From a4526a7caab34edbcef6cc7163e2225def437117 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 5 Jun 2024 12:37:44 +0200 Subject: [PATCH] bugfixing --- src/lib/components/Input.svelte | 14 +++--- src/lib/schemas.js | 12 ++--- .../community/create-post/+page.server.ts | 46 +++++++++++++------ .../community/post/[postId]/+page.svelte | 2 +- 4 files changed, 44 insertions(+), 30 deletions(-) diff --git a/src/lib/components/Input.svelte b/src/lib/components/Input.svelte index 6b1c2417..8e887bd9 100644 --- a/src/lib/components/Input.svelte +++ b/src/lib/components/Input.svelte @@ -31,7 +31,6 @@ if (['.mp4', '.webm'].some(format => files[0]?.name?.includes(format)) ) { videoInput = URL.createObjectURL(files[0]); - console.log(videoInput) } else { @@ -127,10 +126,11 @@ function handleDrop(e) { const handleCancel= () => { -inputValue = ''; -showVideo = false; + inputValue = ''; + showVideo = false; } - let isHovering = false; + +let isHovering = false; $: { @@ -175,10 +175,10 @@ $: { Drop here to upload {/if} - We support jpg/jpeg, png, webp, mp4 and gif. + We support jpg/jpeg, png, webp and mp4. - File must be smaller than 10MB. + File must be smaller than 5MB.