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:
Timothy Carambat
2026-05-11 17:53:30 -07:00
committed by GitHub
@@ -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"
/>