Skip to content

Commit

Permalink
add max-height style to allow long prompt text to scroll and not esca…
Browse files Browse the repository at this point in the history
…pe viewport (#149)

* add max-height (max-h-64) to allow prompt textarea to scroll and not escape viewport

* Remove `spellcheck` from the prompt input

---------

Co-authored-by: Frank Noirot <[email protected]>
  • Loading branch information
edwardsharp and franknoirot authored Oct 11, 2024
1 parent 5ae7e25 commit baa66b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/PromptForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@
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"
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}
Expand Down

0 comments on commit baa66b5

Please sign in to comment.