From 97c1e4ef18509ecddbc6ec8ebd9abcd988ac03e7 Mon Sep 17 00:00:00 2001 From: edward sharp Date: Tue, 20 Aug 2024 11:30:34 -0400 Subject: [PATCH 1/2] add max-height (max-h-64) to allow prompt textarea to scroll and not escape viewport --- src/components/PromptForm.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PromptForm.svelte b/src/components/PromptForm.svelte index c8be3c4..61f340f 100644 --- a/src/components/PromptForm.svelte +++ b/src/components/PromptForm.svelte @@ -87,7 +87,7 @@ required spellcheck="false" disabled={isSubmitting} - class="w-full tracking-wide px-4 py-1 focus:outline-none focus:bg-green/20 focus:placeholder-shown:bg-green/10" + class="w-full tracking-wide px-4 py-1 focus:outline-none focus:bg-green/20 focus:placeholder-shown:bg-green/10 max-h-64" bind:this={input} bind:value={inputValue} on:keydown={handleKeydown} From 2e2c8b3bd7331035e17e02d46dd05cd5ad629528 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Fri, 11 Oct 2024 11:32:34 -0400 Subject: [PATCH 2/2] Remove `spellcheck` from the prompt input --- src/components/PromptForm.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/PromptForm.svelte b/src/components/PromptForm.svelte index 61f340f..789dcb1 100644 --- a/src/components/PromptForm.svelte +++ b/src/components/PromptForm.svelte @@ -85,7 +85,6 @@ autofocus placeholder="e.g. Create a plate with 4 holes and rounded corners" required - spellcheck="false" disabled={isSubmitting} class="w-full tracking-wide px-4 py-1 focus:outline-none focus:bg-green/20 focus:placeholder-shown:bg-green/10 max-h-64" bind:this={input}