Input message improvements (#154)
Browse files* fix pasting long text not scrolling input properly + add scroll padding for better look
* max rows
---------
Co-authored-by: Victor Mustar <victor.mustar@gmail.com>
Files changed (2)
25 unmodified lines26272829303132333435363738394025 unmodified lines<div class="relative min-w-0 flex-1"><preclass="invisible py-3"aria-hidden="true"style="min-height: {minHeight}; max-height: {maxHeight}">{value + " \n"}</pre><textareaenterkeyhint="send"tabindex="0"rows="1"class="scrollbar-custom absolute top-0 m-0 h-full w-full resize-none overflow-x-hidden overflow-y-scroll border-0 bg-transparent p-3 outline-none focus:ring-0 focus-visible:ring-0 dark:bg-transparent"bind:valuebind:this={textareaElement}{disabled}25 unmodified lines26272829303132333435363738394025 unmodified lines<div class="relative min-w-0 flex-1"><preclass="invisible whitespace-pre-wrap p-3"aria-hidden="true"style="min-height: {minHeight}; max-height: {maxHeight}">{value + "\n"}</pre><textareaenterkeyhint="send"tabindex="0"rows="1"class="scrollbar-custom absolute top-0 m-0 h-full w-full resize-none scroll-p-3 overflow-x-hidden overflow-y-scroll border-0 bg-transparent p-3 outline-none focus:ring-0 focus-visible:ring-0"bind:valuebind:this={textareaElement}{disabled}
58 unmodified lines5960616263646558 unmodified linesbind:value={message}on:submit={handleSubmit}autofocusmaxRows={10}/><buttonclass="btn mx-1 my-1 h-[2.4rem] self-end rounded-lg bg-transparent p-1 px-[0.7rem] text-gray-400 disabled:opacity-60 enabled:hover:text-gray-700 dark:disabled:opacity-40 enabled:dark:hover:text-gray-100"58 unmodified lines5960616263646558 unmodified linesbind:value={message}on:submit={handleSubmit}autofocusmaxRows={4}/><buttonclass="btn mx-1 my-1 h-[2.4rem] self-end rounded-lg bg-transparent p-1 px-[0.7rem] text-gray-400 disabled:opacity-60 enabled:hover:text-gray-700 dark:disabled:opacity-40 enabled:dark:hover:text-gray-100"
src/lib/components/chat/ChatInput.svelte+3-3
src/lib/components/chat/ChatWindow.svelte+1-1