diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index 03ff082..23dd8f0 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -573,9 +573,9 @@ if (event.target === null) return autoGrowInput(event.target as HTMLTextAreaElement) } - + const autoGrowInput = (el: HTMLTextAreaElement) => { - el.style.height = 'auto' + el.style.height = '38px'; // don't use "auto" here. Firefox will over-size. el.style.height = el.scrollHeight + 'px' } @@ -980,4 +980,7 @@ .running-totals { opacity: 0.5; } + .chat-input { + /* padding:0; */ + }