From 7d2d05291b8ef536f50a1ecf05bc5fdc949acf45 Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Thu, 16 Oct 2025 22:28:51 -0400 Subject: [PATCH] file input button prototype --- src/lib/components/AutoGrowTextArea.svelte | 34 ++++++++++++++++++++-- src/lib/components/Transmitter.svelte | 1 + 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/lib/components/AutoGrowTextArea.svelte b/src/lib/components/AutoGrowTextArea.svelte index 4a0d12f..20454cc 100644 --- a/src/lib/components/AutoGrowTextArea.svelte +++ b/src/lib/components/AutoGrowTextArea.svelte @@ -193,7 +193,7 @@ }; -
+
+ {#if value === ""} + + { + if ( + event.currentTarget.files && + event.currentTarget.files.length > 0 + ) { + imageHandler?.(event.currentTarget.files[0]); + } + }} + id="media-upload" + type="file" + accept="image/*" + /> + {/if} {#if curemojiresults !== null && curemojinumber !== null}
{#each curemojiresults[0] as result, idx} @@ -226,6 +244,18 @@