mirror of
https://github.com/Mintplex-Labs/anythingllm-embed.git
synced 2026-07-01 12:42:58 -04:00
Merge pull request #17 from gitofinho/fix/input-resize-jump
fix: prevent chat input textarea height jump and top-aligned placeholder
This commit is contained in:
@@ -62,6 +62,7 @@ export default function PromptInput({
|
||||
>
|
||||
<textarea
|
||||
ref={textareaRef}
|
||||
rows={1}
|
||||
onKeyUp={adjustTextArea}
|
||||
onKeyDown={captureEnter}
|
||||
onChange={onChange}
|
||||
@@ -73,7 +74,7 @@ export default function PromptInput({
|
||||
adjustTextArea(e);
|
||||
}}
|
||||
value={message}
|
||||
className="allm-font-sans allm-border-none allm-cursor-text allm-max-h-[100px] allm-text-[14px] allm-mx-2 allm-py-2 allm-w-full allm-text-black allm-bg-transparent placeholder:allm-text-slate-800/60 allm-resize-none active:allm-outline-none focus:allm-outline-none allm-flex-grow"
|
||||
className="allm-box-border allm-font-sans allm-border-none allm-cursor-text allm-max-h-[100px] allm-text-[14px] allm-leading-5 allm-mx-2 allm-py-2 allm-w-full allm-text-black allm-bg-transparent placeholder:allm-text-slate-800/60 allm-resize-none active:allm-outline-none focus:allm-outline-none allm-flex-grow"
|
||||
placeholder={settings.sendMessageText || t("chat.send-message")}
|
||||
id="message-input"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user